const assetMappingsToCreate = [
{
nodeId: 8252999965991682,
assetId: 4354399876978078
},
{
nodeId: 9034285498543958,
assetId: 1042345809544395
}
];
const mappings3D = await client.assetMappings3D.create(
25432542356436,
33485743958747,
assetMappingsToCreate
);
Delete a list of asset mappings
const assetMappingsToDelete = [
{
nodeId: 8252999965991682,
assetId: 4354399876978078
},
{
nodeId: 9034285498543958,
assetId: 1042345809544395
}
];
await client.assetMappings3D.delete(8252999965991682, 4190022127342195, assetMappingsToDelete);
const mappings3D = await client.assetMappings3D.filter(3244265346345, 32423454353545, {
filter: {
treeIndexes: [1000, 1001, 1002]
}
});
const mappings3D = await client.assetMappings3D.list(3244265346345, 32423454353545);
Optionalscope: AssetMappings3DListFilter
Deprecated
Asset-centric 3D contextualization is deprecated 2026-10-15; no retirement date is announced. Use the 3D contextualization APIs in data modeling (public preview, not in this SDK yet). Will be removed or moved in a future major release. See https://docs.cognite.com/cdf/deprecated and https://github.com/cognitedata/cognite-sdk-js/blob/master/guides/DEPRECATIONS.md.