Create Global Variable
Create a new global variable in your workspace. The name must be unique. On success, the response includes the full variable object with a checksum — store this for subsequent update and delete calls.
Create a new global variable in your workspace.
Required fields: name, dataType, value.
dataType must be one of: string, numeric, boolean, json. The value must match the declared type.
isSecret (default false) — when true, the value is masked in all subsequent get/list responses.
canReset (default false) — when true, the variable can be reset to its original value via the UI.
On success: the response data includes the created variable object with its checksum — store this for update and delete calls.
Canonical request body: Create/create_variable.json
Your Nected API key. Obtain from workspace settings.
Branch name (optional)
Request body for creating a global variable. name, dataType, and value are required. isSecret and canReset default to false.
Unique variable name (alphanumeric and underscores recommended)
tax_rate_gstData type of the value
numericPossible values: Variable value — type must match dataType
18Mask value in all responses (default false)
falseAllow resetting to original value via UI (default false)
falseOK — variable created, includes checksum for update/delete
Standard response wrapper for single-variable operations (create, get-by-name, update)
successSuccess.Bad Request — validation error or duplicate name
Internal Server Error
POST /dev/variable HTTP/1.1
Host: api.nected.ai
Nected-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 88
{
"name": "tax_rate_gst",
"dataType": "numeric",
"value": 18,
"isSecret": false,
"canReset": true
}{
"data": {
"name": "tax_rate_gst",
"dataType": "numeric",
"value": 18,
"isSecret": false,
"canReset": true,
"checksum": "a3f1b2c4d5e6f7a8b9c0d1e2f3a4b5c6",
"createdAt": "2026-01-10T10:00:00.000Z",
"updatedAt": "2026-01-10T10:00:00.000Z"
},
"code": "success",
"message": "Variable created successfully."
}Example request body (full JSON)
Response (200)
Use the API reference below to try the endpoint.
Last updated