Skip to main content
POST
/
v1
/
functions
/
{functionId}
/
deploy
Deploy function
curl --request POST \
  --url https://api.zavu.dev/v1/functions/{functionId}/deploy \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sourceCode": "<string>",
  "dependencies": {}
}
'
{
  "deployment": {
    "id": "fnd_abc123",
    "functionId": "<string>",
    "version": 123,
    "status": "pending",
    "createdAt": "2023-11-07T05:31:56Z",
    "sourceCodeBytes": 123,
    "bundleBytes": 123,
    "errorMessage": "<string>",
    "deployedAt": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.zavu.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Path Parameters

functionId
string
required

Zavu Function ID.

Body

application/json

Optional source/dependencies update applied before deploying. Omit both fields to redeploy the current draft as-is.

sourceCode
string

New source code to publish (replaces the draft).

Maximum string length: 900000
dependencies
object

New dependency map (replaces existing dependencies).

Response

Deployment queued.

deployment
object
required