API Reference > imodelhub-client > iModelHubClient > EventSubscriptionHandler > create create Method Overloads create(requestContext, iModelId, events) create(requestContext, iModelId, events) create(requestContext, iModelId, events) Create an EventSubscription. create(requestContext: AuthorizedClientRequestContext, iModelId: string, events: IModelHubEventType[]): Promise<EventSubscription> throws Common iModelHub errors Parameter Type Description requestContext AuthorizedClientRequestContext The client request context iModelId string Id of the iModel. See HubIModel. events IModelHubEventType[] Array of IModelHubEventTypes to subscribe to. Returns - Promise<EventSubscription> Created EventSubscription instance. create(requestContext, iModelId, events) Create an EventSubscription. create(requestContext: AuthorizedClientRequestContext, iModelId: string, events: []): Promise<EventSubscription> throws Common iModelHub errors internal @deprecated Use IModelHubEventType enum for events instead. Parameter Type Description requestContext AuthorizedClientRequestContext The client request context iModelId string Id of the iModel. See HubIModel. events [] Array of EventTypes to subscribe to. Returns - Promise<EventSubscription> Created EventSubscription instance. Defined in clients/imodelhub/src/imodelhub/Events.ts Line 370 Last Updated: 12 June, 2024