Skip to main content
PUT
/
v1
/
functions
/
{slug}
cURL
curl --request PUT \
  --url https://9dc2c77e6dbf.ngrok-free.app/v1/functions/{slug} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Updated Function Name",
  "description": "Updated description"
}'
{
  "id": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11",
  "slug": "my-function",
  "name": "My Function",
  "description": "A function that does something useful",
  "createdAt": "2021-08-01T00:00:00Z",
  "updatedAt": "2021-08-01T00:00:00Z"
}

Authorizations

Authorization
string
header
required

App API key (format: sk_live_app_* or sk_test_app_*) for app-level operations

Path Parameters

slug
string
required

Function slug identifier

Minimum length: 1
Example:

"my-function"

Body

application/json
name
string

Human-readable name of the function

Minimum length: 1
Example:

"Updated Function Name"

description
string

Description of the function

Example:

"Updated description"

Response

Update function configuration

id
string<uuid>
required

Function UUID

Example:

"a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11"

slug
string
required

Function slug identifier

Example:

"my-function"

name
string
required

Human-readable name of the function

Example:

"My Function"

description
string | null
required

Description of the function

Example:

"A function that does something useful"

createdAt
string<date-time>
required

When the function was created

Example:

"2021-08-01T00:00:00Z"

updatedAt
string<date-time>
required

When the function was last updated

Example:

"2021-08-01T00:00:00Z"

I