Skip to main content
POST
Publish a function version

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

workspace
string
required

Workspace slug.

Maximum string length: 64
Pattern: ^[a-z0-9][a-z0-9-]{0,63}$
name
string
required

Function name — a Python identifier.

Maximum string length: 64
Pattern: ^[a-z][a-z0-9_]{0,63}$

Body

application/json
version
integer
required

An approved version to publish.

Required range: x >= 1

Response

Successful Response

workspace
string
required
name
string
required
action
string
required
actor
string
required
at
string<date-time>
required
version
integer | null
previous_version
integer | null
release
ReleaseSummary · object | null
release_error
string | null

Set when the publish succeeded but writing the release did not.