Create or update a variable

Updates an existing variable. This endpoint will update the variable if it exists, or create it if it doesn't exist (upsert behavior).

Required scope: write:variables

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Variable data to update

string
required

Variable name

string
enum
required

Variable type

Allowed:
value
object
required

Variable value, of the JSON type that type names: a string (not empty) for string, an integer number from -9007199254740991 to 9007199254740991 for int, a number for float, and an object or an array for json. Any other value is rejected with 400 and nothing is stored. Values are not converted: "5" is a string, not an int, and a JSON-encoded string is not a json value.

Responses

400

name is missing, empty or not a string; type is not string, int, float or json; or value is missing, an empty string, or does not match type (see the value field).

500

Internal Server Error - The server encountered an unexpected condition that prevented it from fulfilling the request.

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
*/*