REST API - Custom Functions
Update Custom Function
Update an existing custom function
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
Request Body
All fields are optional. Only provided fields will be updated.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_codetriggers a new analysis of the code and its input schema - Non-code fields (name, description, limits) can be updated without triggering re-analysis
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').
Response
Successful Response

