curl --request POST \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/simulators/models/revisions/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filter": {
"modelExternalIds": [
"<string>"
],
"simulatorExternalIds": [
"<string>"
],
"allVersions": false,
"createdTime": {
"max": 1,
"min": 1
},
"lastUpdatedTime": {
"max": 1,
"min": 1
}
},
"limit": 1000,
"cursor": "<string>",
"sort": [
{
"order": "asc",
"property": "createdTime"
}
]
}
'{
"items": [
{
"dataSetId": 123,
"id": 123,
"externalId": "<string>",
"simulatorExternalId": "<string>",
"modelExternalId": "<string>",
"fileId": 123,
"createdByUserId": "<string>",
"versionNumber": 123,
"logId": 123,
"createdTime": 123,
"lastUpdatedTime": 123,
"description": "<string>",
"status": "unknown",
"statusMessage": "<string>"
}
],
"nextCursor": "<string>"
}Retrieves a list of simulator model revisions that match the given criteria.
curl --request POST \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/simulators/models/revisions/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filter": {
"modelExternalIds": [
"<string>"
],
"simulatorExternalIds": [
"<string>"
],
"allVersions": false,
"createdTime": {
"max": 1,
"min": 1
},
"lastUpdatedTime": {
"max": 1,
"min": 1
}
},
"limit": 1000,
"cursor": "<string>",
"sort": [
{
"order": "asc",
"property": "createdTime"
}
]
}
'{
"items": [
{
"dataSetId": 123,
"id": 123,
"externalId": "<string>",
"simulatorExternalId": "<string>",
"modelExternalId": "<string>",
"fileId": 123,
"createdByUserId": "<string>",
"versionNumber": 123,
"logId": 123,
"createdTime": 123,
"lastUpdatedTime": 123,
"description": "<string>",
"status": "unknown",
"statusMessage": "<string>"
}
],
"nextCursor": "<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.
Was this page helpful?