Skip to main content
POST
/
3d
/
models
/
{modelId}
/
revisions
/
update
JavaScript SDK
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"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.cognite.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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.

Path Parameters

modelId
integer<int64>
required

Model ID.

Body

application/json

List of changes.

items
object[]
required
Required array length: 1 - 1000 elements

Response

Corresponding revisions after applying the updates.

items
object[]
required
Last modified on May 13, 2026