Publish the function. If sourceCode or dependencies are provided in the body, they replace the current draft before deployment. Returns immediately with a deployment ID — poll GET /v1/functions/deployments/{deploymentId} until status is active or failed.
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.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Zavu Function ID.
Optional source/dependencies update applied before deploying. Omit both fields to redeploy the current draft as-is.
Deployment queued.
Show child attributes
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"
}
}