DELETE
systems/:system/events/:event/hooks/:hook_id
Deletes a webhook based on webhook ID
Resource Information
Method and URI | DELETE https://developer.api.autodesk.com/webhooks/v1/systems/:system/events/:event/hooks/:hook_id |
Authentication Context | app only/ user context required |
Required OAuth Scopes | data:read data:write |
Request
Headers
Authorization* string | |
Content-Type* string | application/json |
x-ads-region string | Specifies the geographical location (region) of the server that the request is executed on. Supported values are the following, but the default value is US :
|
* Required
Request
URI Parameters
system string | A system for example:
data for Data Management
|
event string | Type of event. See Supported Events |
hook_id string | Webhook ID to delete |
Request
Query String Parameters
region string | Specifies the geographical location (region) of the server that the request is executed on. Supported values are the following, but the default value is US :
The |
Response
HTTP Status Code Summary
204 OK | Delete operation is successful. |
400 BAD REQUEST | The request is invalid. |
401 UNAUTHORIZED | Invalid authorization header. |
403 FORBIDDEN | Access denied regardless of authorization status. |
404 NOT FOUND | The specified resource was not found. |
500 INTERNAL SERVICE ERROR | Unexpected service interruption |
Examples
Successful Deletion of a webhook (204):
Request
curl -X DELETE\
-v 'https://developer.api.autodesk.com/webhooks/v1/systems/data/events/dm.version.added/hooks/0f60f6a0-996c-11e7-abf3-51d68cff984c'\
-H 'Authorization: Bearer bNU4P0trbQKNSzxWksLPTzSbbmUz'
Response
HTTP/1.1 204
Date: Fri, 15 Sep 2017 16:26:40 GMT
Content-Length: 0
Connection: keep-alive