AppPackages
PATCH
AppPackages(‘:id’)

Updates an AppPackage by specifying only the changed attributes.
Resource Information
Method and URI | PATCH https://developer.api.autodesk.com/autocad.io/us-east/v2/AppPackages(‘:id’) |
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 |
Content-Type* string | Must be application/json |
* Required
Request
Body Structure
The changed attributes of an AppPackage object are passed as a flat JSON object inthe request body.
Id string | Unique name of the AppPackage |
Resource string: URL | Location of the bundle containing the files to be loaded into the AutoCAD core engine |
References array: string | AppPackages that this AppPackage depends on |
RequiredEngineVersion enum: string | Version of the AutoCAD core engine to execute the AppPackage. Possible values: 20.1 , 21.0 , 22.0 . |
Version int | Version of the bundle referenced by the Resource attribute |
Description string | Additional detail about the AppPackage |
IsPublic bool | Specifies whether the entity can be publicly targeted |
IsObjectEnabler bool | Indicates whether the AppApackage represents an object enabler |
Response
HTTP Status Code Summary
204 No Content | Resource deleted successfully |
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
AppPackage successfully updated (204)
Request
curl -v "https://developer.api.autodesk.com/autocad.io/us-east/v2/AppPackages('SampleApp')" \
-X 'PATCH' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer Ct43z2DJnsYuaAxI4R2iT84b3UPy' \
-d '
{
"RequiredEngineVersion":"22.0"
}'
Show More
Response
HTTP/1.1 204 No Content
Cache-Control: no-cache
Date: Mon, 12 May 2014 18:36:51 GMT
Expires: -1
Pragma: no-cache
Server: Microsoft-IIS/8.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Connection: keep-alive
Show More