Docs/API reference / Calculated variables
Update calculated variables
Requires `developer_api.calculated_variables.update` on the project-scoped Developer API connection. Use the API origin supplied for your deployment. Unknown query parameters and unexpected request bodies are rejected. Send only mutable fields. Fields not included in the body remain unchanged.
The request panel saves credentials and API settings in this browser. Privacy details
Authorization
developerApiKey Project-scoped Developer API connection key. Grant only the required operation permissions.
In: header
Path Parameters
.*\S.*1 <= length <= 128.*\S.*1 <= length <= 128.*\S.*1 <= length <= 128Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
1 <= propertiesResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/dev-api/v1/p/string/instruments/string/calculated-variables/string" \
-H "Content-Type: application/json" \
-d '{}'{
"request_id": "string",
"data": {
"resource": {
"lifecycle_state": "active",
"archived_at": "2019-08-24T14:15:22Z",
"archived_by": {
"type": "user",
"id": "string"
},
"id": "string",
"instrument_id": "string",
"name": "string",
"alias": "string",
"variable_type": "ingested",
"unit": "cm",
"expected_cadence_s": 1,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"is_time_variable": true,
"configuration_generation": 0,
"calculations": [
{
"id": "stringstringstringstr",
"start_time": "2019-08-24T14:15:22Z",
"expression": "string",
"editor_tokens": [
{
"kind": "text",
"text": "string"
}
],
"inputs": [
{
"id": "stringstringstringstr",
"kind": "self_variable",
"variable_id": "string",
"constant_id": null,
"source_instrument_id": null,
"past_buffer_seconds": null
}
]
}
],
"value_type": "string",
"view_options": {
"hide": true,
"graph": {
"scale": {
"min": 0,
"max": 0,
"interval": 1,
"custom": false
}
}
}
},
"recalculation_batch_run_id": "string"
}
}.*\S.*1 <= length <= 256.*\S.*1 <= length <= 256