Box Developer Documentation
Latest version

Remove webhook

delete
https://api.box.com/2.0
/webhooks/:webhook_id

This endpoint is in the version 2024.0. No changes are required to continue using it. For more details, see Box API versioning.

Deletes a webhook.

Request

bearer [ACCESS_TOKEN]
application/json

Path Parameters

stringin pathrequired
3321123

The ID of the webhook.

Response

none

An empty response will be returned when the webhook was successfully deleted.

application/jsonClient error

Returns an error if the application does not have the permission to manage webhooks.

application/jsonClient error

Returns an error if the webhook could not be found.

application/jsonClient error

An unexpected client error.

delete
Remove webhook
You can now try out some of our APIs live, right here in the documentation.
Log in

Request Example

Learn more about Box SDK versionig strategy.


cURL
curl -i -X DELETE "https://api.box.com/2.0/webhooks/3321123" \
     -H "authorization: Bearer <ACCESS_TOKEN>"
Node/TypeScript v10
await client.webhooks.deleteWebhookById(webhook.id!);
Python v10
client.webhooks.delete_webhook_by_id(webhook.id)
.NET v10
await client.Webhooks.DeleteWebhookByIdAsync(webhookId: NullableUtils.Unwrap(webhook.Id));
Swift v10
try await client.webhooks.deleteWebhookById(webhookId: webhook.id!)
Java v10
client.getWebhooks().deleteWebhookById(webhook.getId())
Python v3
client.webhook(webhook_id='12345').delete()
print('The webhook was successfully deleted!')
.NET v5
await client.WebhooksManager.DeleteWebhookAsync("11111");
Node v3
client.webhooks.delete('1234')
	.then(() => {
		// deletion succeeded — no value returned
	});