AppPackages
PUT
AppPackages(‘:id’)

Updates an AppPackage by redefining the entire AppPackage object.
Resource Information
Method and URI | PUT 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 full AppPackage JSON object with updated attribute values is passed as the 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 |
* Required
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 |
Response
Body Structure (204)
A flat JSON object representing the updated AppPackage is returned.
References array: string | AppPackages that this AppPackage depends on |
Resource string: URL | Location of the bundle containing the files to be loaded into the AutoCAD core engine |
RequiredEngineVersion enum: string | Version of the AutoCAD core engine to execute the AppPackage. Possible values: 20.1 , 21.0 , 22.0 . |
IsPublic bool | Specifies whether the entity can be publicly targeted |
IsObjectEnabler bool | Indicates whether the AppApackage represents an object enabler |
Id string | Unique name of the AppPackage |
Version int | Version of the bundle referenced by the Resource attribute |
Timestamp datetime: ISO 8601 | Timestamp of the last modification |
Description string | Additional details about the AppPackage |
Example
AppPackage Successfully Redefined (204)
Request
curl -v "https://developer.api.autodesk.com/autocad.io/us-east/v2/AppPackages('SampleApp')"
-X 'PUT' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer Pn43z2DJnsYuaAxI4R2iT84b3UPy' \
-d '
{
"@odata.context": "https://developer.api.autodesk.com/autocad.io/us-east/v2/$metadata#AppPackages/$entity",
"References": [],
"Resource": "https://acesdev.s3-us-west-2.amazonaws.com/aces-apppackages/ClientConsole-Dev/8f4cae3e-c17e-4f7a-9df9-1c4703b69889?AWSAccessKeyId=AKIAJVT56CBNM4XOWBBA&Expires=1432146217&Signature=1L%2BUF8aGM%2BZFwjHOLsxXRDQ%2FhfY%3D",
"RequiredEngineVersion": "22.0",
"IsPublic": false,
"IsObjectEnabler": false,
"Id": "SampleApp",
"Version": 1,
"Timestamp": "2015-02-11T19:15:40.835Z",
"Description": "This is an update"
}'
Show More
Response
HTTP/1.1 204 No Content
Cache-Control: no-cache
Date: Mon, 12 May 2014 23:43:20 GMT
Expires: -1
Pragma: no-cache
Server: Microsoft-IIS/8.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Content-Length: 1179
Connection: keep-alive
{
"@odata.context": "https://developer.api.autodesk.com/autocad.io/us-east/v2/$metadata#AppPackages/$entity",
"References": [],
"Resource": "https://acesdev.s3-us-west-2.amazonaws.com/aces-apppackages/ClientConsole-Dev/8f4cae3e-c17e-4f7a-9df9-1c4703b69889?AWSAccessKeyId=AKIAJVT56CBNM4XOWBBA&Expires=1432146217&Signature=1L%2BUF8aGM%2BZFwjHOLsxXRDQ%2FhfY%3D",
"RequiredEngineVersion": "22.0",
"IsPublic": false,
"IsObjectEnabler": false,
"Id": "SampleApp",
"Version": 1,
"Timestamp": "2015-02-11T19:15:40.835Z",
"Description": ""
}
Show More