client.Model to create or list models within a project — for example “structural”, “MEP”, or “main”. Versions (published snapshots) belong to a model.
Read next: Version to load or publish a snapshot · Build your first model analysis tool for a script workflow
Methods
Get
Task<Model> Get(string modelId, string projectId, CancellationToken cancellationToken = default)
Retrieves a model by id.
GetWithVersions
Task<ModelWithVersions> GetWithVersions(string modelId, string projectId, int versionsLimit = 25, string? versionsCursor = null, ModelVersionsFilter? versionsFilter = null, CancellationToken cancellationToken = default)
Retrieves a model along with a paginated list of its versions.
GetModels
Task<ResourceCollection<Model>> GetModels(string projectId, int modelsLimit = 25, string? modelsCursor = null, ProjectModelsFilter? modelsFilter = null, CancellationToken cancellationToken = default)
Lists models in a project.
Creates a model.
CreateModelInput(string name, string? description, string projectId).Updates a model’s name or description.
Deletes a model.
GetPermissions
Task<ModelPermissionChecks> GetPermissions(string projectId, string modelId, CancellationToken cancellationToken = default)
Checks the active user’s permissions on the model (update, delete, create version).
CanCreateModelIngestion
Task<PermissionCheckResult> CanCreateModelIngestion(string projectId, string modelId, CancellationToken cancellationToken = default)
Checks whether the active user can create a connector-scale ingestion for this model. Requires server version 3.0.11 or later.
Usage
Next Steps
Core concepts
Where models fit in the hierarchy
Publish large models (connectors)
SendPipeline upload workflow
VersionResource
Versions within a model