curl --request POST \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/3d/contextualization/image360 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"items": [
{
"asset": {
"instanceId": {
"space": "<string>",
"externalId": "<string>"
}
},
"image360": {
"instanceId": {
"space": "<string>",
"externalId": "<string>"
}
},
"polygon": {
"version": "2.0.0",
"data": [
4,
0.9270756358319165,
2.2174037424638806,
0.7257584085532073,
2.3363920019987128,
0.5705610346411107,
1.4057349929548537,
0.8149227563644923,
1.438327658871614,
4,
0.4054357034082108,
1.9334182037803302,
0.3161133722927196,
2.1237903923558683,
0.2849443437943124,
1.2575840792945063,
0.3874849796030885,
1.3717664614350102
]
}
}
],
"dmsContextualizationConfig": {
"object3DSpace": "<string>",
"contextualizationSpace": "<string>",
"revisionInstanceId": {
"space": "<string>",
"externalId": "<string>"
}
}
}
'{}Create contextualization connections between a 360 image annotation and a CogniteAsset instance. The relation between CogniteAsset and the 360 image annotations is One CogniteAsset to Many Cognite360ImageAnnotation. This allows users to navigate between 3D objects in a 360 image model and their connected CogniteAsset instances.
The 360 image annotations 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.
NOTE: The request body variants without “RC” in the name (e.g. ContextualizeImage360AnnotationBody) are deprecated and will be removed before this endpoint is released. Use the “RC” (Release Candidate) variants instead.
curl --request POST \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/3d/contextualization/image360 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"items": [
{
"asset": {
"instanceId": {
"space": "<string>",
"externalId": "<string>"
}
},
"image360": {
"instanceId": {
"space": "<string>",
"externalId": "<string>"
}
},
"polygon": {
"version": "2.0.0",
"data": [
4,
0.9270756358319165,
2.2174037424638806,
0.7257584085532073,
2.3363920019987128,
0.5705610346411107,
1.4057349929548537,
0.8149227563644923,
1.438327658871614,
4,
0.4054357034082108,
1.9334182037803302,
0.3161133722927196,
2.1237903923558683,
0.2849443437943124,
1.2575840792945063,
0.3874849796030885,
1.3717664614350102
]
}
}
],
"dmsContextualizationConfig": {
"object3DSpace": "<string>",
"contextualizationSpace": "<string>",
"revisionInstanceId": {
"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 dmsContextualizationConfig and a list of Asset instance and Image360 instance ids with Annotation data.
Empty response.
The response is of type object.
Was this page helpful?