curl --request POST \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/simulators/routines/revisions/byids \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"items": [
{
"id": 123
}
]
}
'{
"items": [
{
"dataSetId": 123,
"id": 123,
"externalId": "<string>",
"simulatorExternalId": "<string>",
"routineExternalId": "<string>",
"simulatorIntegrationExternalId": "<string>",
"modelExternalId": "<string>",
"createdByUserId": "<string>",
"versionNumber": 123,
"createdTime": 123,
"configuration": {
"schedule": {
"enabled": false
},
"dataSampling": {
"enabled": false
},
"logicalCheck": [
{
"enabled": true,
"timeseriesExternalId": "<string>",
"aggregate": "average",
"operator": "eq",
"value": 123
}
],
"steadyStateDetection": [
{
"enabled": true,
"aggregate": "average",
"minSectionSize": 123,
"varThreshold": 123,
"slopeThreshold": 123,
"timeseriesExternalId": "<string>"
}
],
"inputs": [],
"outputs": []
},
"script": [
{
"order": 5,
"steps": [
{
"order": 5000,
"stepType": "Get",
"arguments": {
"referenceId": "<string>"
},
"description": "<string>"
}
],
"description": "<string>"
}
]
}
]
}Retrieve one or more simulator routine revisions by IDs or external IDs.
curl --request POST \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/simulators/routines/revisions/byids \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"items": [
{
"id": 123
}
]
}
'{
"items": [
{
"dataSetId": 123,
"id": 123,
"externalId": "<string>",
"simulatorExternalId": "<string>",
"routineExternalId": "<string>",
"simulatorIntegrationExternalId": "<string>",
"modelExternalId": "<string>",
"createdByUserId": "<string>",
"versionNumber": 123,
"createdTime": 123,
"configuration": {
"schedule": {
"enabled": false
},
"dataSampling": {
"enabled": false
},
"logicalCheck": [
{
"enabled": true,
"timeseriesExternalId": "<string>",
"aggregate": "average",
"operator": "eq",
"value": 123
}
],
"steadyStateDetection": [
{
"enabled": true,
"aggregate": "average",
"minSectionSize": 123,
"varThreshold": 123,
"slopeThreshold": 123,
"timeseriesExternalId": "<string>"
}
],
"inputs": [],
"outputs": []
},
"script": [
{
"order": 5,
"steps": [
{
"order": 5000,
"stepType": "Get",
"arguments": {
"referenceId": "<string>"
},
"description": "<string>"
}
],
"description": "<string>"
}
]
}
]
}Access token issued by the CDF project's configured identity provider. Access token must be an OpenID Connect token, and the project must be configured to accept OpenID Connect tokens. Use a header key of 'Authorization' with a value of 'Bearer $accesstoken'. The token can be obtained through any flow supported by the identity provider.
A list of items
1 - 20 elementsShow child attributes
Successful Response
Show child attributes
Was this page helpful?