PUT
/
api
/
functions
/
{slug}
{
  "success": true,
  "function": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "slug": "hello-world",
    "name": "Hello World Function v2",
    "description": "Returns a greeting message",
    "status": "active",
    "updated_at": "2024-01-21T11:00:00Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

slug
string
required

Function slug identifier

Body

application/json
name
string

New display name

code
string

Updated function code

description
string

Updated description

status
enum<string>

Function status

Available options:
draft,
active,
error

Response

Function updated successfully

success
boolean
function
object