Create a resource-scoped webhook subscription on an existing webhook endpoint.
Subscriptions let you receive events for a specific resource (e.g., a single extractor or workflow) rather than all resources of that type. The enabledEvents must be valid for the given resourceType and the endpoint’s apiVersion.
If a subscription already exists for the same endpoint and resource, it will be updated with the new enabledEvents instead of creating a duplicate.
Bearer authentication of the form Bearer <token>, where token is your auth token.
The event types to subscribe to. Must be valid for the given resourceType.
The ID of the resource this subscription is scoped to (e.g., an extractor, classifier, splitter, or workflow).
The list of event types this subscription is subscribed to. The valid event types depend on the resourceType.
API version to use for the request. If you’re using an SDK, you can ignore this parameter. If you are not using an SDK and do not specify a version, you will either receive a 400 Bad Request or be set to a previous legacy version. See API Versioning for more details.