v1
latestOpenAPI 3.0.02026-07-142351,1971.3 MBSynthetics
Edit a global variable
Edit a Synthetic global variable.
put/api/v1/synthetics/variables/{variable_id}
Path parameters
variable_idstring required
The ID of the global variable.
Request body
Example request
{
"attributes": {
"restricted_roles": [
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
]
},
"description": "Example description",
"name": "MY_VARIABLE",
"parse_test_options": {
"field": "content-type",
"localVariableName": "LOCAL_VARIABLE",
"parser": {
"type": "regex",
"value": ".*"
},
"type": "http_body"
},
"parse_test_public_id": "abc-def-123",
"tags": [
"team:front",
"test:workflow-1"
],
"value": {
"secure": true,
"value": "value"
}
}Response
OK
Example response
{
"attributes": {
"restricted_roles": [
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
]
},
"description": "Example description",
"name": "MY_VARIABLE",
"parse_test_options": {
"field": "content-type",
"localVariableName": "LOCAL_VARIABLE",
"parser": {
"type": "regex",
"value": ".*"
},
"type": "http_body"
},
"parse_test_public_id": "abc-def-123",
"tags": [
"team:front",
"test:workflow-1"
],
"value": {
"secure": true,
"value": "value"
}
}