Skip to main content
PATCH
Configure a function

Authorizations

Authorization
string
header
required

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

Path Parameters

functionId
string
required

Body

application/json

Configuration only, applied in one transaction: if any part is refused, nothing changes. Code, dependencies and deploys are on /v1 (PATCH /v1/functions/{functionId} and POST /v1/functions/{functionId}/deploy). Send at least one field. Every invalid field is reported in details.errors.

name
string
Required string length: 1 - 80
description
string | null

null clears it.

Maximum string length: 280
timeoutSec
integer

Applied on the next deploy.

Required range: 1 <= x <= 180
memoryMb
enum<integer>

Applied on the next deploy.

Available options:
128,
256,
512,
1024
architecture
enum<string>
Available options:
arm64,
x86_64
enabled
boolean

false pauses the function, true resumes it. Refused with 409 function_not_ready while it is a draft, deploying, or its first deploy failed.

httpEnabled
boolean

Switch the public endpoint on or off. Applies to the deployed function without a redeploy.

Response

The function after the change.

function
object
required

A Zavu Function: TypeScript that runs in Zavu Cloud, either reacting to events, serving HTTP, or holding the agents its code declares.