Create a global variable
POST {{baseUrl}}/api/v1/synthetics/variables
Create a Synthetic global variable.
Request Body
{"description"=>"Example description", "name"=>"MY_VARIABLE", "tags"=>["team:front", "test:workflow-1"], "value"=>{"secure"=>true, "value"=>"value"}, "attributes"=>{"restricted_roles"=>["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"]}, "id"=>"sunt adipisicing ex nostrud", "parse_test_options"=>{"type"=>"http_body", "field"=>"content-type", "localVariableName"=>"LOCAL_VARIABLE", "parser"=>{"type"=>"regex", "value"=>".*"}}, "parse_test_public_id"=>"abc-def-123"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"description":"Example description","name":"MY_VARIABLE","tags":["team:front","test:workflow-1"],"value":{"secure":true,"value":"value"},"attributes":{"restricted_roles":["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"]},"id":"sunt adipisicing ex nostrud","parse_test_options":{"type":"http_body","field":"content-type","localVariableName":"LOCAL_VARIABLE","parser":{"type":"regex","value":".*"}},"parse_test_public_id":"abc-def-123"}