v3

latestOpenAPI 3.1.02026-08-0150254154.0 KB
voiceAgent > variables

Update an Agent Variable

Updates the value of an existing template variable

patch/v1/projects/{project_id}/agent-variables/{variable_id}

Path parameters

project_idstring required

The unique identifier of the project

variable_idstring required

The unique identifier of the agent variable

Headers

Authorizationstring required

Use Authorization: Token <API_KEY> Example: Authorization: Token 12345abcdef

Request body

{"stackTrail":"components:schemas:UpdateAgentVariableV1Request:properties:value","oasType":"schema","type":"unknown","description":"The new value to substitute"}

Response

Agent variable updated

variable_idstring required

The unique identifier of the variable

keystring required

The variable name, following the DG_<VARIABLE_NAME> format

{"stackTrail":"components:schemas:AgentVariableV1:properties:value","oasType":"schema","type":"unknown","description":"The value to substitute. Can be any valid JSON type"}
created_atstring date-time

Timestamp when the variable was created

updated_atstring date-time

Timestamp when the variable was last updated