Skip to main content
PUT

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. Send a unique value to retry safely: a retry with the same key within 10 minutes returns the first response instead of applying the change again. Reusing a key with a different body is refused (422 IdempotencyKeyReused); a retry while the first request is still running gets 409 IdempotencyKeyInProgress.

Maximum string length: 255
Example:

"b3f1c2d4-save-1"

Path Parameters

voiceAgentId
string<uuid>
required

ID of the voice agent.

Example:

"d949f13f-40d2-4e48-ac86-b66633070603"

Body

application/json
environments
object[]
required

All three environments, as returned by the list.

Minimum array length: 1
baseRevisions
object

Optional. The revision of each environment when you read it, by environment ID. Without it, the last save wins.

Example:

Response

Saved. Returns the environments as they are now.

success
boolean
Example:

true

message
string
Example:

"success"

data
object
Example: