Skip to main content
PUT
Save a branch draft

Authorizations

Authorization
string
header
required

A workspace API key from Workspace settings > API keys, sent as Authorization: Bearer cl_api_.... A Read only key can call the GET endpoints; every other method needs a Full access key.

Path Parameters

agentId
string
required
Required string length: 1 - 128
branchId
string
required
Required string length: 1 - 128

Body

application/json
revision
integer
required
Required range: x >= 0
configuration
object
required

An agent's whole configuration on a branch or in a version. Secrets are masked, and content synced from a connected integration reads empty; send the masks back to keep the values.

Response

Success.

data
object
required