Create asset mappings
Asset mappings allows connections to be made between assets and 3D nodes. This can be used to contextualize 3D models.
In Hybrid CDF projects: Asset IDs obtained from a mapping may be invalid, and not point to real asset IDs.
The assetId existence is not checked by any means by the 3D API.
The mappings will be stored until an assetId
and nodeId
pair is removed through the mappings delete endpoint.
In DataModelingOnly CDF projects: When creating asset mappings, the data model based assetInstanceId (with space and externalId), and the 3d model revision nodeId, must be accessible, existing and valid.
A list of created asset mappings.
The response for a failed request.
{- "items": [
- {
- "nodeId": 1003,
- "assetId": 3001,
- "assetInstanceId": {
- "space": "string",
- "externalId": "string"
}
}
]
}
{- "items": [
- {
- "nodeId": 1003,
- "assetId": 3001,
- "assetInstanceId": {
- "space": "string",
- "externalId": "string"
}, - "treeIndex": 3,
- "subtreeSize": 4
}
]
}