Box Developer Documentation
Latest version

Remove webhook

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

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

cURL
curl -i -X DELETE "https://api.box.com/2.0/webhooks/3321123" \
     -H "authorization: Bearer <ACCESS_TOKEN>"
TypeScript Gen
await client.webhooks.deleteWebhookById(webhook.id!);
Python Gen
client.webhooks.delete_webhook_by_id(webhook.id)
.NET Gen
await client.Webhooks.DeleteWebhookByIdAsync(webhookId: NullableUtils.Unwrap(webhook.Id));
Python
client.webhook(webhook_id='12345').delete()
print('The webhook was successfully deleted!')
.NET
await client.WebhooksManager.DeleteWebhookAsync("11111");
Node
client.webhooks.delete('1234')
	.then(() => {
		// deletion succeeded — no value returned
	});
iOS
client.webhooks.delete(webhookId: "22222") { result: Result<Void, BoxSDKError>} in
    guard case .success = result else {
        print("Error deleting webhook")
        return
    }

    print("Webhook successfully deleted")
}