AppPackages
POST
AppPackages(‘:id’)/Operations.DeleteHistory

Removes the version history of the specified AppPackage.
Note that it is not recommended to use this method; by using this method you will no longer have the ability to roll back changes to an earlier version. This method is designated for internal use only.
Resource Information
Method and URI | POST https://developer.api.autodesk.com/autocad.io/us-east/v2/AppPackages(‘:id’)/Operations.DeleteHistory |
Authentication Context | app only |
Required OAuth Scopes | code:all |
Data Format | JSON |
Request
Headers
Authorization* string | Must be Bearer <token> , where <token> is obtained
via OAuth |
* Required
Request
HTTP Status Code Summary
200 OK | Request has succeeded |
400 Bad Request | Request could not be understood by the server due to malformed syntax |
401 Unauthorized | Access token is invalid |
404 Not Found | Resource cannot be found |
429 Too Many Requests | Rate limit exceeded; wait some time before retrying |
500 Internal Server Error | An unexpected error occurred on the server |
Example
History of the AppPackage successfully removed (200)
Request
curl -v "https://developer.api.autodesk.com/autocad.io/us-east/v2/AppPackages('MyTestPackage')/Operations.DeleteHistory" \
-X 'POST' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer Js43z2DJnsYuaAxI4R2iT84b3UPy'OData-MaxVersion: 4.0 \
-H 'User-Agent: Microsoft ADO.NET Data Services' \
Response
HTTP/1.1 200 OK
Cache-Control: no-cache
Date: Wed, 11 May 2016 23:16:38 GMT
Expires: -1
Pragma: no-cache
Server: Microsoft-IIS/8.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Content-Length: 0
Connection: keep-alive
Show More