Delete a custom headers set
Deletes a custom headers set. By default the delete is refused while the set is still in use: if any webhook or OAuth credentials use it, nothing is deleted and the request fails with 409 Conflict, naming the reason and listing the ids of the webhooks and OAuth credentials using it. This protects a shared set from being removed out from under the things that depend on it.
Pass forceDelete=true to delete anyway. That detaches everything using the set — it clears each webhook’s and each OAuth credential set’s webhookCustomHeadersId, it does not delete the webhook or the credentials — then deletes the set and returns the deleted resource together with detachedWebhookIds and detachedWebhookOauthIds. A detached webhook stops sending these headers with its notifications, and detached OAuth credentials stop sending them on the token request.
When nothing uses the set the delete succeeds either way, and both lists come back empty.
Endpoint Permissions: Owner, Admin, Non-Signing Admin.
Path Parameters
Query Parameters
Response
The deleted custom headers set, plus the ids of any webhooks and OAuth credentials that were detached from it
The deleted custom headers set, plus the ids of any webhooks and OAuth credentials the delete detached from it. Things are only detached by forceDelete=true; without it a delete is refused with 409 while anything still uses the set.