API Reference > imodelhub-client > iModelHubClient > EventSubscriptionHandler > update 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 clients/imodelhub/src/imodelhub/Events.ts Line 405 Last Updated: 11 June, 2024