Updates one or more subscriptions. Fields that are not included in the request, are not changed.
If both instanceIds
and timeSeriesIds
are set, they must either both be add/remove or
both be set operations.
The subscriptions to update
required | Array of objects (Select by externalId) = 1 items |
A list of subscriptions updated
{- "items": [
- {
- "externalId": "my.known.id",
- "update": {
- "timeSeriesIds": {
- "add": [
- "my.known.id"
], - "remove": [
- "my.known.id"
]
}, - "instanceIds": {
- "add": [
- {
- "space": "string",
- "externalId": "string"
}
], - "remove": [
- {
- "space": "string",
- "externalId": "string"
}
]
}, - "name": {
- "set": "string"
}, - "description": {
- "set": "string"
}, - "dataSetId": {
- "set": 0
}, - "filter": {
- "set": {
- "or": [
- {
- "not": {
- "and": [
- {
- "equals": {
- "property": [
- "metadata",
- "manufacturer"
], - "value": "acme"
}
}, - {
- "in": {
- "property": [
- "name"
], - "values": [
- "pump-1-temperature",
- "motor-9-temperature"
]
}
}, - {
- "range": {
- "property": [
- "dataSetId"
], - "gte": 1,
- "lt": 10
}
}
]
}
}, - {
- "and": [
- {
- "equals": {
- "property": [
- "assetId"
], - "value": 1234
}
}, - {
- "equals": {
- "property": [
- "description"
], - "value": "Temperature in Celsius"
}
}
]
}
]
}
}
}
}
]
}
{- "items": [
- {
- "externalId": "my.known.id",
- "name": "string",
- "description": "string",
- "dataSetId": 1,
- "partitionCount": 1,
- "timeSeriesCount": 0,
- "filter": {
- "or": [
- {
- "not": {
- "and": [
- {
- "equals": {
- "property": [
- "metadata",
- "manufacturer"
], - "value": "acme"
}
}, - {
- "in": {
- "property": [
- "name"
], - "values": [
- "pump-1-temperature",
- "motor-9-temperature"
]
}
}, - {
- "range": {
- "property": [
- "dataSetId"
], - "gte": 1,
- "lt": 10
}
}
]
}
}, - {
- "and": [
- {
- "equals": {
- "property": [
- "assetId"
], - "value": 1234
}
}, - {
- "equals": {
- "property": [
- "description"
], - "value": "Temperature in Celsius"
}
}
]
}
]
}, - "createdTime": 1730204346000,
- "lastUpdatedTime": 1730204346000
}
]
}