create Method
Create a named Version of an iModel.
create(requestContext: AuthorizedClientRequestContext, iModelId: GuidString, changeSetId: string, name: string, description?: string): Promise<Version>
throws IModelHubError with IModelHubStatus.UserDoesNotHavePermission if the user does not have ManageVersions permission.
throws IModelHubError with IModelHubStatus.ChangeSetDoesNotExist if the ChangeSet with specified changeSetId does not exist.
throws IModelHubError with IModelHubStatus.VersionAlreadyExists if a named Version already exists with the specified name.
throws IModelHubError with IModelHubStatus.ChangeSetAlreadyHasVersion if the ChangeSet with specified changeSetId already has a named Version associated with it.
throws Common iModelHub errors
Parameter | Type | Description |
---|---|---|
requestContext | AuthorizedClientRequestContext | The client request context. |
iModelId | GuidString | Id of the iModel. See HubIModel. |
changeSetId | string | Id of the ChangeSet to create a named Version for. Empty ChangeSet id can be provided to create iModel's baseline version. |
name | string | Name of the new named Version. |
description | string | Description of the new named Version. |
Returns - Created Version instance.
Defined in
Last Updated: 08 January, 2020