API Reference > imodelhub-client > iModelHubClient > IModelHandler > update update Method Update iModel's name and/or description update(requestContext: AuthorizedClientRequestContext, contextId: string, imodel: HubIModel): Promise<HubIModel> throws IModelHubError with IModelHubStatus.UserDoesNotHavePermission if the user does not have CreateiModel permission. throws IModelHubError with [IModelHubStatus.iModelDoesNotExist]$(bentley) if iModel does not exist. throws IModelHubError with [IModelHubStatus.iModelIsNotInitialized]$(bentley) if iModel is not initialized. throws IModelHubError with [IModelHubStatus.iModelAlreadyExists]$(bentley) if iModel with specified name already exists. throws Common iModelHub errors Parameter Type Description requestContext AuthorizedClientRequestContext The client request context. contextId string Id for the iModel's context. For iModelHub it should be the id of the iTwin context (Project or Asset). imodel HubIModel iModel to update. See HubIModel. Returns - Promise<HubIModel> Defined in clients/imodelhub/src/imodelhub/iModels.ts Line 834 Last Updated: 12 June, 2024