curl --request POST \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/3d/nodes/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": {
"instanceId": {
"space": "<string>",
"externalId": "<string>"
}
},
"revision": {
"instanceId": {
"space": "<string>",
"externalId": "<string>"
}
},
"filterNodesByBoundingBox": {
"boundingBox": {
"xMin": 123,
"xMax": 123,
"yMin": 123,
"yMax": 123,
"zMin": 123,
"zMax": 123
},
"nodeIds": [
123
]
}
}
'{
"items": [
{
"id": 1000,
"treeIndex": 3,
"depth": 2,
"name": "Node name",
"subtreeSize": 4,
"boundingBox": {
"max": [
123
],
"min": [
123
]
}
}
],
"nextCursor": "<string>"
}This endpoint is only supported in dm-only projects.
The nodeIds can be found as part of a CogniteCadNode in the field cadNodeReference.
Similar functionality is supported in classic through:
curl --request POST \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/3d/nodes/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": {
"instanceId": {
"space": "<string>",
"externalId": "<string>"
}
},
"revision": {
"instanceId": {
"space": "<string>",
"externalId": "<string>"
}
},
"filterNodesByBoundingBox": {
"boundingBox": {
"xMin": 123,
"xMax": 123,
"yMin": 123,
"yMax": 123,
"zMin": 123,
"zMax": 123
},
"nodeIds": [
123
]
}
}
'{
"items": [
{
"id": 1000,
"treeIndex": 3,
"depth": 2,
"name": "Node name",
"subtreeSize": 4,
"boundingBox": {
"max": [
123
],
"min": [
123
]
}
}
],
"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.
The Model, Revision, a list of nodes and an area definition
Was this page helpful?