v1
latestOpenAPI 3.1.02026-07-22115189303.8 KBFunctions
Update function
Update function metadata or code. Supports partial updates - only include fields you want to change.
Common updates:
- Update function code (requires redeployment to take effect)
- Change function name or description
- Update runtime configuration
- Modify function slug
Important: Code updates are saved immediately but do NOT automatically deploy. After updating code, you must call POST /functions/{id}/deploy for changes to take effect in production.
patch/functions/{function_id}
Request body
Response
Function updated successfully
Example response
{
"data": {
"slug": "calculate-shipping-cost",
"endpoint_url": "https://api.kapso.ai/platform/v1/functions/{function_id}/invoke"
}
}