---
title: "Invoke function"
method: POST
path: "/v1/fn/{module_name}/{function_name}"
tags: ["functions"]
---

# Invoke function

`POST /v1/fn/{module_name}/{function_name}`

Invoke function

## Path parameters

- `module_name` string, required
- `function_name` string, required

## Request body

- InvokeInput
  - `args` object
  - `scheduling` object — Language and name of the script that will be used for the scheduling policy. If empty, the default policy is used.
    - `language` 'app' | 'none' — Language of the configuration script.
    - `script` string — Name of the configuration script.

## Response `200`

Expected response to a valid request

- InvokeResult
  - `data` object

## Other responses

- `default` — Unexpected error

---

[API](https://skmtc.net/funlessdev/apis/funless-platfom-api.md) · [All operations](https://skmtc.net/funlessdev/apis/funless-platfom-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/funlessdev/funless-platfom-api/versions/85205576ddbf/schema)
