---
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

## Changes

- **2026-07-17** `85205576ddbf` — 1 breaking, 3 info
  - request property `scheduling/language` was restricted to a list of enum values
  - the `language` request property default value `none` was added
  - added the new `app` enum value to the request property `scheduling/language`
  - added the new `none` enum value to the request property `scheduling/language`
- **2024-05-29** `0966ed7ccf9d` — 1 info
  - added the new optional request property `scheduling`
- **2023-01-10** `2e7bd2529f07` — 2 breaking, 3 info
  - the request's body type/format changed from ``/`` to `object`/``
  - the response's body type/format changed from ``/`` to `object`/`` for status `200`
  - added the new optional request property `args`
  - added the media type `application/json` for the response with the status `default`
  - …1 more
- **2022-12-09** `3dbe3a34b766` — 1 info
  - endpoint added
- **2022-12-06** `e6ce66c43687` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/funlessdev/apis/funless-platfom-api/changes/v1/fn/:module_name/:function_name/post.md)

---

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