const revisionsToUpdate = [{
id: 6305529564379596,
update: {
rotation: {
set: [1, 2, 3]
},
translation: {
set: [4, 5, 6]
},
scale: {
set: [0.5, 0.3, 0.2]
}
}
}];
const updated = await client.revisions3D.update(8252999965991682, revisionsToUpdate);{
"items": [
{
"id": 1000,
"fileId": 1000,
"published": false,
"status": "Done",
"assetMappingCount": 0,
"createdTime": 0,
"rotation": [
0,
0,
0
],
"scale": [
1,
1,
1
],
"translation": [
0,
0,
0
],
"camera": {
"target": [
123
],
"position": [
123
]
},
"metadata": {},
"thumbnailThreedFileId": 1000,
"thumbnailURL": "https://api.cognitedata.com/api/v1/project/myproject/3d/files/1000"
}
]
}Required capabilities:
threedAcl:UPDATE
const revisionsToUpdate = [{
id: 6305529564379596,
update: {
rotation: {
set: [1, 2, 3]
},
translation: {
set: [4, 5, 6]
},
scale: {
set: [0.5, 0.3, 0.2]
}
}
}];
const updated = await client.revisions3D.update(8252999965991682, revisionsToUpdate);{
"items": [
{
"id": 1000,
"fileId": 1000,
"published": false,
"status": "Done",
"assetMappingCount": 0,
"createdTime": 0,
"rotation": [
0,
0,
0
],
"scale": [
1,
1,
1
],
"translation": [
0,
0,
0
],
"camera": {
"target": [
123
],
"position": [
123
]
},
"metadata": {},
"thumbnailThreedFileId": 1000,
"thumbnailURL": "https://api.cognitedata.com/api/v1/project/myproject/3d/files/1000"
}
]
}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.
Model ID.
List of changes.
1 - 1000 elementsShow child attributes
Corresponding revisions after applying the updates.
Show child attributes
Was this page helpful?