Join BoxWorks 2024 to discover what's possible with content and AI!
Register now!Deletes a webhook.
3321123
The ID of the webhook.
An empty response will be returned when the webhook was successfully deleted.
Returns an error if the application does not have the permission to manage webhooks.
Returns an error if the webhook could not be found
An unexpected client error.
curl -i -X DELETE "https://api.box.com/2.0/webhooks/3321123" \
-H "authorization: Bearer <ACCESS_TOKEN>"
await client.webhooks.deleteWebhookById(webhook.id!);
client.webhooks.delete_webhook_by_id(webhook.id)
await client.Webhooks.DeleteWebhookByIdAsync(webhookId: NullableUtils.Unwrap(webhook.Id));
try await client.webhooks.deleteWebhookById(webhookId: webhook.id!)
client.webhook(webhook_id='12345').delete()
print('The webhook was successfully deleted!')
await client.WebhooksManager.DeleteWebhookAsync("11111");
client.webhooks.delete('1234')
.then(() => {
// deletion succeeded — no value returned
});
client.webhooks.delete(webhookId: "22222") { result: Result<Void, BoxSDKError>} in
guard case .success = result else {
print("Error deleting webhook")
return
}
print("Webhook successfully deleted")
}