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: GuidString, 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 | GuidString | Id of the iModel. See HubIModel. |
subscription | EventSubscription | Updated EventSubscription. |
Returns - EventSubscription instance from iModelHub after update.
Defined in
Last Updated: 08 January, 2020