Skip to main content
POST
Update your agent draft onto the newest version

Authorizations

Authorization
string
header
required

Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token '

Headers

Idempotency-Key
string

Optional, up to 255 characters. Retry with the same key after a network error and you get the first answer back instead of the change being made twice (kept 10 minutes). Same key with a different body: 422 IdempotencyKeyReused. While the first request still runs: 409 IdempotencyKeyInProgress.

Maximum string length: 255
Example:

"0b6f3c1e-retry-1"

Path Parameters

voiceAgentId
string<uuid>
required

ID of the voice agent.

Example:

"fc6f158b-24c2-45a6-957b-c57c0a8979b5"

Body

application/json
onTopOf
integer
required

The newest version number, which you merged your draft onto.

Required range: x >= 1
Example:

5

config
object
required

All fields are optional for updates. Include only the fields you want to update.

baseRevision
string<uuid>
required

Your draft's current revision, the one the merge started from.

Example:

"e2f7a9c3-6b1d-4e5f-a8c2-7d3b9f0e1a56"

Response

Successful response

success
boolean
Example:

true

message
string
Example:

"success"

data
object