Assign prompt template
Assign a published prompt template version to a workspace channel.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <API_KEY>, where API_KEY is your API key.
Path parameters
workspaceId
Workspace to configure.
mode
Channel to configure. Allowed values: chat or voice. The template type must match this value.
Headers
X-Account-Id
Account that owns the workspace.
Request
This endpoint expects an object.
versionId
Published template version to assign. It must belong to your partner and match the channel.
variables
The variable values, keyed by variable key. Validated against the version variable definitions: required variables must be present (unless they have a default), values must match the declared type, and unknown keys are rejected.
Response
The template assignment for this channel.
promptTemplate
The active assignment on this slot — the same object the workspace detail inlines as chat.promptTemplate / voice.promptTemplate.
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error

