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
versionId
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.
prompt
The system prompt. May contain {{placeholder}} variables — declare each one in variables before the version can be published.
firstMessage
The call greeting. Only valid on voice templates; may also contain {{placeholder}} variables.
variables
Definitions for the placeholders used in the prompt and firstMessage. Sending this REPLACES the full set; omit it to leave the variables untouched.
toolIds
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.
version
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

