Update query
PUT/v2/illuminate/queries/:id
Updates an existing saved query. Accepts the same request body as create (name, description, definition).
Warning: This is a full replacement — the entire
definitionis replaced, not merged. Always send the complete definition, even for unchanged portions.
Downstream impact
- Dashboards and decisions that reference this query will use the new definition on their next execution.
- If a decision is actively using this query, changing the pipeline schema (different output field names or types) can break rule references. Deactivate the decision first.
customerIdcannot be changed after creation.
Request
Example
{
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-01T00:00:00.000Z",
"createdBy": "string",
"updatedBy": "string",
"decisions": [
{
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-01T00:00:00.000Z",
"createdBy": "string",
"updatedBy": "string",
"id": "string",
"name": "string",
"description": "string",
"accountId": "string",
"businessObjectId": "string",
"sourceType": "BUSINESSOBJECT",
"sourceId": "string",
"hitType": "SINGLE",
"enabled": false,
"activeFrom": "2024-01-01T00:00:00.000Z",
"activeUntil": "2024-01-01T00:00:00.000Z",
"executeOnce": false,
"executionFrequency": 0,
"inputFields": [
{}
],
"outputFields": [
{}
],
"rules": [
{}
],
"actions": [
{}
],
"businessObject": {
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-01T00:00:00.000Z",
"createdBy": "string",
"updatedBy": "string",
"id": "string",
"name": "string",
"isActive": false,
"description": "string",
"fields": [],
"accountId": "string",
"subkeys": [],
"metrics": [],
"decisions": [],
"dashboards": [],
"queries": [],
"customers": []
},
"metric": {
"id": "string",
"name": "string",
"measureId": "string",
"businessObjectId": "string",
"evaluationWindow": 0,
"function": "string",
"dimensionIds": [],
"dimensions": [],
"filters": [],
"businessObject": {}
},
"customer": {
"id": "string",
"name": "string"
}
}
],
"customer": {
"id": "string",
"name": "string"
},
"businessObjects": [
{
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-01T00:00:00.000Z",
"createdBy": "string",
"updatedBy": "string",
"id": "string",
"name": "string",
"isActive": false,
"description": "string",
"fields": [
{}
],
"accountId": "string",
"subkeys": [
"string"
],
"metrics": [
{}
],
"decisions": [
{}
],
"dashboards": [
{}
],
"queries": [],
"customers": [
{}
]
}
],
"id": "string",
"name": "string",
"description": "string",
"definition": {
"version": "2.0",
"pipeline": {
"sources": [
{}
],
"transforms": [
{}
],
"output": {
"from": "event_aggregation",
"select": [],
"orderBy": [],
"limit": 100,
"offset": 0
}
},
"meta": {}
},
"template": "string",
"accountId": "string"
}