update Method

Update a GlobalEventSubscription. Can change the GlobalEventTypes specified in the subscription. Must be a valid subscription that was previously created with GlobalEventSubscriptionHandler.create.

update(requestContext: AuthorizedClientRequestContext, subscription: GlobalEventSubscription): Promise<GlobalEventSubscription>

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

throws Common iModelHub errors

Parameter Type Description
requestContext AuthorizedClientRequestContext The client request context.
subscription GlobalEventSubscription Updated GlobalEventSubscription.

Returns - GlobalEventSubscription instance from iModelHub after update.

Defined in

Last Updated: 08 January, 2020