API DocsRESTCalculated channel service

ListCalculatedChannelVersions

List versions of a particular calculated channel with an optional filter.

GET
/api/v2/calculated-channels/{calculatedChannelId}/versions

Path Parameters

calculatedChannelId
Required
string

Query Parameters

clientKeystring

pageSizeinteger

The maximum number of calculated channel versions to return. The service may return fewer than this value. If unspecified, at most 50 calculated channels will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. Optional.

Format: "int64"

pageTokenstring

A page token, received from a previous ListCalculatedChannelVersions call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListCalculatedChannelVersions must match the call that provided the page token. Optional.

filterstring

A Common Expression Language (CEL) filter string. Available fields to filter by are calculated_channel_id, client_key, name, asset_id, asset_name, tag_id, tag_name, version, and `archived_date. For further information about how to use CELs, please refer to this guide. For more information about the fields used for filtering, please refer to this definition. Optional.

organizationIdstring

This field is only required if your user belongs to multiple organizations.

orderBystring

How to order the retrieved calculated channel versions. Formatted as a comma-separated string i.e. "FIELD_NAME[ desc],...". Available fields to order_by are created_date, modified_date, and version. If left empty, items are ordered by created_date in ascending order (oldest-first). For more information about the format of this field, read this Example: "created_date desc,modified_date".

curl -X GET "<API_URL>/api/v2/calculated-channels/string/versions?clientKey=string&pageSize=0&pageToken=string&filter=string&organizationId=string&orderBy=string" \
  -H "Authorization: Bearer <API_KEY>"

A successful response.

{
  "calculatedChannelVersions": [
    {
      "calculatedChannelId": "string",
      "organizationId": "string",
      "clientKey": "string",
      "archivedDate": "2019-08-24T14:15:22Z",
      "versionId": "string",
      "version": 0,
      "name": "string",
      "description": "string",
      "changeMessage": "string",
      "userNotes": "string",
      "units": "string",
      "createdDate": "2019-08-24T14:15:22Z",
      "modifiedDate": "2019-08-24T14:15:22Z",
      "calculatedChannelConfiguration": {
        "assetConfiguration": {
          "allAssets": true,
          "selection": {
            "assetIds": [
              "string"
            ],
            "tagIds": [
              "string"
            ]
          }
        },
        "queryConfiguration": {
          "sel": {
            "expression": "string",
            "expressionChannelReferences": [
              {
                "channelReference": "string",
                "channelIdentifier": "string"
              }
            ]
          }
        }
      },
      "createdByUserId": "string",
      "modifiedByUserId": "string"
    }
  ],
  "nextPageToken": "string"
}