/v1/projects/{project_id}/agent-variables/{variable_id}Update an Agent VariableUpdates the value of an existing template variable
Parameters
project_idstringpathrequiredThe unique identifier of the project
variable_idstringpathrequiredThe unique identifier of the agent variable
Request body
Updated value for the agent variable
application/json
UpdateAgentVariableV1Request
Request body for updating an agent variable
valuevaluerequiredThe new value to substitute
{
"value": null
}Responses
AgentVariableV1
A template variable for agent configurations
created_atstring · date-timeTimestamp when the variable was created
keystringrequiredThe variable name, following the DG_<VARIABLE_NAME> format
updated_atstring · date-timeTimestamp when the variable was last updated
valuevaluerequiredThe value to substitute. Can be any valid JSON type
variable_idstringrequiredThe unique identifier of the variable
{
"created_at": "2026-06-09T00:00:00Z",
"key": "string",
"updated_at": "2026-06-09T00:00:00Z",
"value": null,
"variable_id": "string"
}ErrorResponse
oneOf · 3 options
ErrorResponseTextError
ErrorResponseLegacyError
err_codestringThe error code
err_msgstringThe error message
request_idstringThe request ID
ErrorResponseModernError
categorystringThe category of the error
detailsstringA description of the error
messagestringA message about the error
request_idstringThe unique identifier of the request
{
"err_code": "string",
"err_msg": "string",
"request_id": "string"
}