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//deploy for changes to take effect in production.
Authorizations
Path Parameters
Function identifier
Body
Request to update an existing function. Supports partial updates - only include fields you want to change. Important: Code updates are saved but not automatically deployed. You must call POST /functions/{id}/deploy to deploy changes to production.
Response
Function updated successfully
Single function response
Serverless function configuration. Functions are custom JavaScript code that runs on-demand in response to API invocations. Deploy functions to either Cloudflare Workers (global edge network) or Supabase Edge Functions (Deno runtime).

