Skip to main content

webhookDelete Mutation

Deletes a webhook. Before the deletion, the webhook is deactivated to pause any deliveries that are already scheduled. The deletion might fail if delivery is in progress. In such a case, the webhook is not deleted but remains deactivated.

Requires one of the following permissions: MANAGE_APPSAUTHENTICATED_APP
webhookDelete(
id: ID
identifier: String
): WebhookDelete
Details
type WebhookDelete {
webhookErrors: [WebhookError!]! @deprecated
errors: [WebhookError!]!
webhook: Webhook
}

Arguments

id ● ID

ID of a webhook to delete. Cannot be used together with identifier.

identifier ● String

App-provided identifier of a webhook to delete. Identifiers are unique per app only, so this argument is available exclusively to an app referencing its own webhook; staff users must use id. Cannot be used together with id.

Added in Saleor 3.23

Type

WebhookDelete

Deletes a webhook. Before the deletion, the webhook is deactivated to pause any deliveries that are already scheduled. The deletion might fail if delivery is in progress. In such a case, the webhook is not deleted but remains deactivated.

Requires one of the following permissions: MANAGE_APPSAUTHENTICATED_APP