putGlobalVariable
PUT
/api/v1/variables/{key}
const url = 'https://example.com/api/v1/variables/example';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"value":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/v1/variables/example \ --header 'Content-Type: application/json' \ --data '{ "value": "example" }'Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”key
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
value
required
string
key
additional properties
any
Examplegenerated
{ "value": "example"}Responses
Section titled “ Responses ”OK
Media typeapplication/json
object
inherited
required
True when a parent namespace or the global scope defines the variable.
boolean
key
required
string
scope
required
Global or the namespace name that defines the variable.
string
updated_at
required
string format: date-time
updated_by
required
string
value
required
string
key
additional properties
any
Examplegenerated
{ "inherited": true, "key": "example", "scope": "example", "updated_at": "2026-04-15T12:00:00Z", "updated_by": "example", "value": "example"}default
Section titled “default”Error
Media typeapplication/json
object
error
required
object
code
required
string
details
message
required
string
key
additional properties
any
key
additional properties
any
Examplegenerated
{ "error": { "code": "example", "details": "example", "message": "example" }}