curl --request POST \
--url https://your-sift-api-url.com/api/v2/calculated-channels/resolve:batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"requests": [
{
"identifier": {
"id": "<string>",
"clientKey": "<string>"
},
"calculatedChannelConfiguration": {
"assetConfiguration": {
"allAssets": true,
"selection": {
"assetIds": [
"<string>"
],
"tagIds": [
"<string>"
]
}
},
"queryConfiguration": {
"sel": {
"expression": "<string>",
"expressionChannelReferences": [
{
"channelReference": "<string>",
"channelIdentifier": "<string>"
}
]
}
}
},
"organizationId": "<string>",
"assets": {
"ids": {
"ids": [
"<string>"
]
},
"names": {
"names": [
"<string>"
]
}
},
"run": {
"id": "<string>",
"clientKey": "<string>"
}
}
]
}
'{
"responses": [
{
"resolved": [
{
"assetName": "<string>",
"expressionRequest": {
"expression": "<string>",
"channelReferences": {},
"expressionChannelReferences": [
{
"channelReference": "<string>",
"channelId": "<string>"
}
],
"functionDependencies": [
{
"userDefinedFunctionVersionId": "<string>"
}
]
},
"outputDataType": "CHANNEL_DATA_TYPE_UNSPECIFIED",
"assetId": "<string>"
}
],
"unresolved": [
{
"assetName": "<string>",
"errorMessage": "<string>"
}
],
"calculatedChannelId": "<string>"
}
]
}Resolve a batch of calculated channels into expressions with references
curl --request POST \
--url https://your-sift-api-url.com/api/v2/calculated-channels/resolve:batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"requests": [
{
"identifier": {
"id": "<string>",
"clientKey": "<string>"
},
"calculatedChannelConfiguration": {
"assetConfiguration": {
"allAssets": true,
"selection": {
"assetIds": [
"<string>"
],
"tagIds": [
"<string>"
]
}
},
"queryConfiguration": {
"sel": {
"expression": "<string>",
"expressionChannelReferences": [
{
"channelReference": "<string>",
"channelIdentifier": "<string>"
}
]
}
}
},
"organizationId": "<string>",
"assets": {
"ids": {
"ids": [
"<string>"
]
},
"names": {
"names": [
"<string>"
]
}
},
"run": {
"id": "<string>",
"clientKey": "<string>"
}
}
]
}
'{
"responses": [
{
"resolved": [
{
"assetName": "<string>",
"expressionRequest": {
"expression": "<string>",
"channelReferences": {},
"expressionChannelReferences": [
{
"channelReference": "<string>",
"channelId": "<string>"
}
],
"functionDependencies": [
{
"userDefinedFunctionVersionId": "<string>"
}
]
},
"outputDataType": "CHANNEL_DATA_TYPE_UNSPECIFIED",
"assetId": "<string>"
}
],
"unresolved": [
{
"assetName": "<string>",
"errorMessage": "<string>"
}
],
"calculatedChannelId": "<string>"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The request of a call to CalculatedChannelService_BatchResolveCalculatedChannels.
The request of a call to CalculatedChannelService_BatchResolveCalculatedChannels.
All calculated channels to resolve.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Sift Expression Language.
Show child attributes
This field is only required if your user belongs to multiple organizations.
A successful response.
The response of a call to CalculatedChannelService_BatchResolveCalculatedChannels.
All calculated channels that attempted resolution.
Show child attributes
All resolved calculated channels.
Show child attributes
The name of the specific asset that was resolved.
Show child attributes
A map from the channel reference in the expression string (e.g. $1) to the channel id (uuid). This is deprecated and should be passed in expression_channel_references instead.
Show child attributes
CHANNEL_DATA_TYPE_UNSPECIFIED, CHANNEL_DATA_TYPE_DOUBLE, CHANNEL_DATA_TYPE_STRING, CHANNEL_DATA_TYPE_ENUM, CHANNEL_DATA_TYPE_BIT_FIELD, CHANNEL_DATA_TYPE_BOOL, CHANNEL_DATA_TYPE_FLOAT, CHANNEL_DATA_TYPE_INT_32, CHANNEL_DATA_TYPE_UINT_32, CHANNEL_DATA_TYPE_INT_64, CHANNEL_DATA_TYPE_UINT_64, CHANNEL_DATA_TYPE_BYTES If provided in the request, the calculated channel resolved.
Was this page helpful?