API Reference > imodeljs-clients > 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: 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 - Promise<EventSubscription> EventSubscription instance from iModelHub after update. Defined in core/clients/src/imodelhub/Events.ts Line 320 Last Updated: 13 June, 2024