Create Agent Variable
Creates a new template variable. Variables follow the DG_<VARIABLE_NAME> naming format and can substitute any JSON value in an agent configuration.
Authentication
AuthorizationToken
Use Authorization: Token <API_KEY>
Example: Authorization: Token 12345abcdef
Path parameters
project_id
Request
Agent variable details
key
The variable name, following the DG_<VARIABLE_NAME> format
value
The value to substitute. Can be any valid JSON type (string, number, boolean, object, or array)
api_version
API version. Defaults to 1
Response
Agent variable created successfully
variable_id
The unique identifier of the variable
key
The variable name, following the DG_<VARIABLE_NAME> format
value
The value to substitute. Can be any valid JSON type
created_at
Timestamp when the variable was created
updated_at
Timestamp when the variable was last updated
Errors
400
Bad Request Error