Skip to main content
POST
Roll Back

Authorizations

Authorization
string
header
required

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

Path Parameters

agent_id
string
required
version_number
integer
required

Body

application/json
expected_live_version
integer

Switch only while this is the live version number. Otherwise 409 with reason live_changed and nothing is written.

Required range: x >= 1
reason
string

Why the live version is moving. Kept on the deployment record.

Maximum string length: 500

Response

Request fulfilled, document follows

version
PublicAgentVersionSummary ยท object
required

The version that is live now (is_live: true).

previous_version_number
integer
required

The version that was live before the call.

changed
boolean
required

Whether the live version moved. False when the target was already live; nothing is written then.