Skip to main content
PATCH
Update function

Authorizations

X-API-Key
string
header
required

Path Parameters

function_id
string<uuid>
required

Function identifier

Body

application/json

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.

function
object
required

Response

Function updated successfully

Single function response

data
object
required

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).