cURL
curl --request PATCH \ --url https://eu-cloudflare.vg-stuff.com/variables/{variableId} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "variable": { "in": "<string>", "type": "string", "value": "<unknown>", "defaultValue": "<unknown>", "key": "<string>", "description": "<string>", "required": true, "reusable": true, "isEnv": true, "isSystem": true, "isGlobal": true } } '
{ "success": true, "message": "<string>", "data": { "id": "<string>", "in": "<string>", "type": "string", "value": "<unknown>", "defaultValue": "<unknown>", "key": "<string>", "description": "<string>", "required": true, "reusable": true, "isEnv": true, "isSystem": true, "isGlobal": true, "agentId": "<string>", "userId": "<string>" } }
Updates a variable, this route must use the new V3 endpoints.
{ "variable": { "value": "John Doe", "description": "Updated description" } }
key
value
defaultValue
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Show child attributes
Successful response