Skip to main content
POST
Publish a 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}$
key
string
required

Decision key — a flat slug, never a path.

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

Body

application/json
version
integer
required

Version to make live. Rolling back is publishing an earlier version — there is no separate action.

Required range: x >= 1

Response

Successful Response

workspace
string
required
key
string
required
version
integer
required
action
enum<string>
required

What a rules_publication_history row records.

Available options:
publish,
rollback
published_by
string
required
published_at
string<date-time>
required
previous_version
integer | null