v1

latestOpenAPI 3.0.32026-07-26172157253.6 KB
Admin

Update function

Update an existing function's code or metadata

put/api/functions/{slug}

Path parameters

slugstring required

Function slug identifier

Request body

namestring

New display name

codestring

Updated function code

descriptionstring

Updated description

status'draft' | 'active' | 'error'

Function status

Response

Function updated successfully

successboolean

Example response

{
  "function": {
    "slug": "hello-world",
    "name": "Hello World Function"
  }
}