Retrieve a revision by ID

async AsyncCogniteClient.three_d.revisions.retrieve(
model_id: int,
id: int,
) ThreeDModelRevision | None

Retrieve a 3d model revision by id.

Parameters:
  • model_id (int) – Get the revision under the model with this id.

  • id (int) – Get the model revision with this id.

Returns:

The requested 3d model revision.

Return type:

ThreeDModelRevision | None

Example

Retrieve 3d model revision by model id and revision id:

>>> from cognite.client import CogniteClient, AsyncCogniteClient
>>> client = CogniteClient()
>>> # async_client = AsyncCogniteClient()  # another option
>>> res = client.three_d.revisions.retrieve(model_id=1, id=1)