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

# Update function

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

Update function

## Path parameters

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

## Response `200`

Null response

## Other responses

- `207` — Mixed response
- `default` — Unexpected error

## Changes

- **2024-05-29** `0966ed7ccf9d` — 1 info
  - added the new optional request property `metadata`
- **2023-11-25** `f2aedf033be3` — 1 info
  - added the new optional request property `wait_for_workers`
- **2023-01-12** `18fc49bda986` — 1 warning, 4 info
  - removed the optional property `data/metadata` from the response with the `207` status
  - added the new optional request property `sinks`
  - added the optional property `data/events_metadata` to the response with the `207` status
  - added the optional property `data/sinks` to the response with the `207` status
  - …1 more
- **2023-01-10** `7c2e4ec34fb0` — 1 breaking, 1 info
  - request property `events/items/type` was restricted to a list of enum values
  - added the new `mqtt` enum value to the request property `events/items/type`
- **2023-01-10** `ef999eedbf43` — 1 breaking
  - removed `subschema #1` from the `events/items/type` request property `oneOf` list

[Full history](https://skmtc.dev/funlessdev/apis/funless-platfom-api/changes/v1/fn/:module_name/:function_name/put.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)
