Update template version (draft only)

Update a draft template version.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <API_KEY>, where API_KEY is your API key.

Path parameters

versionIdstringRequired
Draft version to update.

Request

Fields to change. Every field is optional but you must send at least one; only the fields you send are updated.

promptstringOptional

The system prompt. May contain {{placeholder}} variables — declare each one in variables before the version can be published.

firstMessagestring or nullOptional

The call greeting. Only valid on voice templates; may also contain {{placeholder}} variables.

variableslist of objectsOptional

Definitions for the placeholders used in the prompt and firstMessage. Sending this REPLACES the full set; omit it to leave the variables untouched.

toolIdslist of stringsOptional

Partner tools this version references, by id. Only tools owned by the same partner are accepted. Sending this REPLACES the full set; omit it to leave the tools untouched.

Response

The updated draft version.
versionobject
The updated draft, in full detail.

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
500
Internal Server Error