Update Global Variable
Update the value of an existing global variable by its name. Only value can be changed — to modify dataType, isSecret, or canReset, delete and recreate the variable.
Update the value of an existing global variable.
checksum header is required — must match the server's current checksum for the variable. Obtain it from the Create response or GET /dev/variable/{name} → data.checksum. If it does not match, the update is rejected.
Only value can be updated through this endpoint. To change dataType, isSecret, or canReset, delete and recreate the variable.
On success: response data includes the updated variable with a new checksum — store it for any subsequent update or delete.
Canonical request body: Update/update_variable.json
Your Nected API key. Obtain from workspace settings.
The variable name
tax_rate_gstBranch name (optional)
Current checksum of the variable — from Create or Get response
a3f1b2c4d5e6f7a8b9c0d1e2f3a4b5c6Request body for updating a global variable. Only value can be changed.
New value — must match the variable's existing dataType
20OK — variable updated, new checksum returned
Standard response wrapper for single-variable operations (create, get-by-name, update)
successSuccess.Bad Request — checksum mismatch or validation error
Internal Server Error
PATCH /dev/variable/{name} HTTP/1.1
Host: api.nected.ai
Nected-API-Key: YOUR_API_KEY
checksum: a3f1b2c4d5e6f7a8b9c0d1e2f3a4b5c6
Content-Type: application/json
Accept: */*
Content-Length: 12
{
"value": 20
}{
"data": {
"name": "tax_rate_gst",
"dataType": "numeric",
"value": 20,
"isSecret": false,
"canReset": true,
"checksum": "f7e6d5c4b3a2f1e0d9c8b7a6f5e4d3c2",
"updatedAt": "2026-05-31T12:00:00.000Z"
},
"code": "success",
"message": "Variable updated successfully."
}Checksum (required)
The checksum must be sent as a request header. Obtain the current checksum from:
Create response (
data.checksum), orGet global variable by name (
data.checksum) — most reliable.
If the checksum does not match the server's current state, the update is rejected.
On success, the response returns the updated variable with a new checksum — store it before calling update or delete again.
Last updated