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

Removes the version history of the specified Activity.
Resource Information
Method and URI | POST https://developer.api.autodesk.com/autocad.io/us-east/v2/Activities(‘: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 Activity Successfully Removed (200)
Request
curl -v "https://developer.api.autodesk.com/autocad.io/us-east/v2/Activities('MyTestPackage')/Operations.DeleteHistory" \
-X 'POST' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer Vk3RWmCsTLAdRVea36e0UH4LoGDR' \
-H 'User-Agent: Microsoft ADO.NET Data Services' \
-H 'Accept: application/json;odata.metadata=minimal' \
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