DELETE
tokens/@me
Delete a Webhook secret token. Please note that the secret token can still be available for up to 10 mins depending on the latest event delivery attempt.
Resource Information
Method and URI | DELETE https://developer.api.autodesk.com/webhooks/v1/tokens/@me |
Authentication Context | app only/ user context required |
Required OAuth Scopes | data:read data:write |
Data Format | JSON |
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
URI 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 NO CONTENT | Successful deletion of secret token. |
400 BAD REQUEST | The request is invalid. |
401 UNAUTHORIZED | Invalid authorization header. |
403 FORBIDDEN | Access denied regardless of authorization status. |
404 NOT FOUND | Endpoint or secret token does not exist. |
500 INTERNAL SERVICE ERROR | Unexpected service interruption. |
Example
Successful Deletion of a Secret Token (204)
Request
curl -X 'DELETE'\
-v 'https://developer.api.autodesk.com/webhooks/v1/tokens/@me'\
-H 'Content-Type: application/json'\
-H 'authorization: Bearer eyJhbGciOiJIUzI1NiIsImtpZCI6Imp3dF9zeW1tZX'
Response
HTTP/1.1 204
Date: Fri, 15 Sep 2017 19:11:00 GMT
Content-Length: 0
Connection: keep-alive