Configure a function
Name, description, timeout, memory, architecture, pause and the HTTP endpoint, with the same rules as the dashboard's Settings tab.
Authorization
AuthorizationheaderrequiredBearer YOUR_API_KEY. Create a key in the dashboard.
Path parameters
functionIdstringrequired
Body
application/json
namestringLimitsmin length 1 · max length 80descriptionstringnull clears it.
Limitsmax length 280timeoutSecintegerApplied on the next deploy.
Limitsmin 1 · max 180memoryMbintegerApplied on the next deploy.
One of1282565121024architecturestringOne ofarm64x86_64enabledbooleanfalse pauses the function, true resumes it. Refused with 409
function_not_readywhile it is a draft, deploying, or its first deploy failed.httpEnabledbooleanSwitch the public endpoint on or off. Applies to the deployed function without a redeploy.
Responses
200The function after the change.
functionobjectrequiredA Zavu Function: TypeScript that runs in Zavu Cloud, either reacting to events, serving HTTP, or holding the agents its code declares.
16 properties
idstringrequiredslugstringrequirednamestringrequireddescriptionstringruntimestringrequiredstatusstringrequiredOne ofdraftdeployingactivefaileddisabledenabledbooleanrequiredTrue only while a version is live and not paused (
status: active). A draft, a failed first deploy, a deploy in progress or a pause are allfalse.timeoutSecintegerrequiredmemoryMbintegerrequiredOne of1282565121024architecturestringrequiredarm64 is the default and the cheaper one; x86_64 bills each invocation at 1.25x units. Applied on the next deploy.
One ofarm64x86_64httpEnabledbooleanrequiredpublicUrlstring<uri>Null while
httpEnabledis false: the URL does not serve then.activeDeploymentIdstringcreatedAtstring<date-time>requiredupdatedAtstring<date-time>requiredpausedbooleanrequiredThe customer paused it. A deploy, a git push or a rollback does not resume it. Pausing stops event triggers; the HTTP endpoint has its own switch,
httpEnabled, and the tools of the agents it declares keep answering.
400Nothing to change, or invalid values (each in `details.errors`).
codestringrequiredmessagestringrequireddetailsobjectMachine-readable context. Keys that mean the same thing everywhere: -
errors: present on every400 invalid_requestfor an invalid body or query parameter,[{path, message, ...}],pathnaming the field (["to"],["contacts", 2, "recipient"],["limit"]). -recommendation: one sentence saying what to do next. -dashboardUrl: the dashboard screen that fixes it. -connect: on409 no_channel, the channels this project can connect to reach the recipient, each{type, request, note, available, dashboardUrl?};requestis the exact call (POST /v2/channelswith its body, orPOST /v2/numbers), or null for a channel connected from the dashboard (WhatsApp, Instagram, Messenger).available: falsesays why innote(one-way SMS closed until business verification is approved). -address/from: the address the error is about, under the name the request used for it.1 properties
errorsobject[]3 properties
pathobject[]requiredmessagestringrequiredcodestring
401Unauthorized.
codestringrequiredmessagestringrequireddetailsobjectMachine-readable context. Keys that mean the same thing everywhere: -
errors: present on every400 invalid_requestfor an invalid body or query parameter,[{path, message, ...}],pathnaming the field (["to"],["contacts", 2, "recipient"],["limit"]). -recommendation: one sentence saying what to do next. -dashboardUrl: the dashboard screen that fixes it. -connect: on409 no_channel, the channels this project can connect to reach the recipient, each{type, request, note, available, dashboardUrl?};requestis the exact call (POST /v2/channelswith its body, orPOST /v2/numbers), or null for a channel connected from the dashboard (WhatsApp, Instagram, Messenger).available: falsesays why innote(one-way SMS closed until business verification is approved). -address/from: the address the error is about, under the name the request used for it.1 properties
errorsobject[]3 properties
pathobject[]requiredmessagestringrequiredcodestring
404Function not found.
codestringrequiredmessagestringrequireddetailsobjectMachine-readable context. Keys that mean the same thing everywhere: -
errors: present on every400 invalid_requestfor an invalid body or query parameter,[{path, message, ...}],pathnaming the field (["to"],["contacts", 2, "recipient"],["limit"]). -recommendation: one sentence saying what to do next. -dashboardUrl: the dashboard screen that fixes it. -connect: on409 no_channel, the channels this project can connect to reach the recipient, each{type, request, note, available, dashboardUrl?};requestis the exact call (POST /v2/channelswith its body, orPOST /v2/numbers), or null for a channel connected from the dashboard (WhatsApp, Instagram, Messenger).available: falsesays why innote(one-way SMS closed until business verification is approved). -address/from: the address the error is about, under the name the request used for it.1 properties
errorsobject[]3 properties
pathobject[]requiredmessagestringrequiredcodestring
409`function_not_ready`: pausing or resuming a function that is a draft, deploying, or whose last deploy failed.
codestringrequiredmessagestringrequireddetailsobjectMachine-readable context. Keys that mean the same thing everywhere: -
errors: present on every400 invalid_requestfor an invalid body or query parameter,[{path, message, ...}],pathnaming the field (["to"],["contacts", 2, "recipient"],["limit"]). -recommendation: one sentence saying what to do next. -dashboardUrl: the dashboard screen that fixes it. -connect: on409 no_channel, the channels this project can connect to reach the recipient, each{type, request, note, available, dashboardUrl?};requestis the exact call (POST /v2/channelswith its body, orPOST /v2/numbers), or null for a channel connected from the dashboard (WhatsApp, Instagram, Messenger).available: falsesays why innote(one-way SMS closed until business verification is approved). -address/from: the address the error is about, under the name the request used for it.1 properties
errorsobject[]3 properties
pathobject[]requiredmessagestringrequiredcodestring