curl --request POST \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/3d/contextualization/cad \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"items": [
{
"asset": {
"instanceId": {
"space": "<string>",
"externalId": "<string>"
}
},
"nodeId": 1003
}
],
"dmsContextualizationConfig": {
"object3DSpace": "<string>",
"contextualizationSpace": "<string>",
"revision": {
"instanceId": {
"space": "<string>",
"externalId": "<string>"
}
}
}
}
'{}Create contextualization connections between 3D CAD nodes and CogniteAsset instances. This allows users to navigate between 3D objects in a 3D CAD model and their connected CogniteAsset instances.
The 3D CAD nodes are defined for a specific 3D model revision. The connections are referencing the space and externalId for CogniteAsset node instances.
NOTE: This endpoint is only available for DataModelOnly projects.
curl --request POST \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/3d/contextualization/cad \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"items": [
{
"asset": {
"instanceId": {
"space": "<string>",
"externalId": "<string>"
}
},
"nodeId": 1003
}
],
"dmsContextualizationConfig": {
"object3DSpace": "<string>",
"contextualizationSpace": "<string>",
"revision": {
"instanceId": {
"space": "<string>",
"externalId": "<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 list of asset instanceIds and nodes, and the dmsContextualizationConfig.
Empty response.
The response is of type object.
Was this page helpful?