update Method

Update an EventSubscription. Can change the EventTypes specified in the subscription. Must be a valid subscription that was previously created with EventSubscriptionHandler.create that hasn't expired.

update(requestContext: AuthorizedClientRequestContext, iModelId: string, subscription: EventSubscription): Promise<EventSubscription>

throws IModelHubError with IModelHubStatus.EventSubscriptionDoesNotExist if EventSubscription does not exist with the specified subscription.wsgId.

throws Common iModelHub errors

Parameter Type Description
requestContext AuthorizedClientRequestContext The client request context
iModelId string Id of the iModel. See HubIModel.
subscription EventSubscription Updated EventSubscription.

Returns - Promise<EventSubscription>

EventSubscription instance from iModelHub after update.

Defined in

Last Updated: 12 June, 2024