Skip to main content
PATCH
Update Custom Function
Update an existing custom function. You can update the name, description, source code, and limits. If source code changes, the function is re-analyzed automatically.

Path Parameters

string
required
Unique identifier of the custom function

Request Body

All fields are optional. Only provided fields will be updated.
string
Updated display name
string
Updated description
string
Updated Python source code (triggers re-analysis)
object
Updated execution limits, for example {"max_run_time": 30} (seconds)

Response

Returns {"status": "updating"}. The change is applied in the background. Runs that start in the next few seconds can still use the previous code. Read the function with Get Custom Function to see the saved version.

Example Request

Notes

  • Changing source_code triggers a new analysis of the code and its input schema
  • Non-code fields (name, description, limits) can be updated without triggering re-analysis

Authorizations

x-api-key
string
header
required

API Key for authentication

Path Parameters

function_id
string
required

Body

application/json

Request model for updating an existing custom function.

All fields are optional. If source_code changes, the function will be re-analyzed automatically (status transitions to 'analysing' then 'ready').

name
string | null

Updated function name.

description
string | null

Updated function description.

source_code
string | null

Updated Python source code. If changed, triggers re-analysis.

limits
CustomFunctionLimitsModel · object | null

Updated resource limits.

Response

Successful Response