List revisions

async AsyncCogniteClient.three_d.revisions.list(
model_id: int,
published: bool = False,
limit: int | None = 25,
) ThreeDModelRevisionList

List 3d model revisions.

Parameters:
  • model_id (int) – List revisions under the model with this id.

  • published (bool) – Filter based on whether or not the revision is published.

  • limit (int | None) – Maximum number of models to retrieve. Defaults to 25. Set to -1, float(“inf”) or None to return all items.

Returns:

The list of 3d model revisions.

Return type:

ThreeDModelRevisionList

Example

List 3d model revisions:

>>> from cognite.client import CogniteClient, AsyncCogniteClient
>>> client = CogniteClient()
>>> # async_client = AsyncCogniteClient()  # another option
>>> res = client.three_d.revisions.list(model_id=1, published=True, limit=100)