Update details Of A Package
Update details of a Package
Request
URI
PUT
https://{api_host}/app_volumes/app_packages/{id}
COPY
Path Parameters
integer
id
Required
Package ID.
Request Body
UpdatePackageRequestBody of type(s) application/json
Optional
{
"data": {
"app_product_id": 1,
"lifecycle_stage_id": 1,
"lifecycle_stage_name": "Tested",
"app_product_guid": "654723bc-09de-4d9b-806c-9cd1d231a0ab",
"note": "The Package is best suited for development and HR dept.",
"name": "Notepad-7.0.1",
"description": "This package is on its latest version 7.0.1.",
"delivery": "classic"
}
}
object
data
Required
data
Responses
200
Saved Package Properties.
Returns GetPackageSuccess of type(s) application/json
{
"data": {
"id": 0,
"name": "Notepad-7.0.1",
"guid": "14848eb3-169b-4e8a-bcb7-556f1811c08c",
"app_product_id": 3,
"lifecycle_stage_id": 1,
"state": "Package",
"version": "7.0.1",
"description": "This package is on its latest version 7.0.1",
"note": "The Package is best suited for development and HR dept.",
"display_delivery": "Classic",
"delivery": "classic",
"capable_of_on_demand": true,
"status": "enabled",
"programs_count": 2,
"icon": "/snapvols/9/Notepad++.7.0.1.png",
"operating_systems_count": 0,
"delete_status": "deleting",
"deleted_at": "2021-12-04 13:10:13 -0800",
"deleted_at_human": "Dec 04 2021",
"created_at": "2021-12-03 13:10:13 -0800",
"created_at_human": "Dec 03 2021",
"updated_at": "2021-12-03 13:10:13 -0800",
"updated_at_human": "Dec 03 2021",
"added_at": "2021-12-03 13:10:13 -0800",
"added_at_human": "Dec 04 2021",
"attachment_count": 2,
"type": "AppPackage",
"format": "AV",
"path": "appvolumes/packages",
"filename": "Notepad++.vmdk",
"enabled": true,
"writable": false,
"datastore_name": "datastore1",
"files_count": 2,
"total_use_count": 5,
"provision_uuid": "string",
"provisioning": false,
"provision_completed_at": "2021-08-17 10:32:32 +0530",
"provision_started_at": "2021-08-17 10:30:26 +0530",
"size_mb": 73,
"size_human": "83.00 MB",
"assignment_count": 1,
"volume_guid": "{4f949610-35c1-4e52-9f71-89d899150007}",
"snapvol_version_id": 0,
"mount_prefix": "string",
"mounted_at": "2021-08-17 11:00:32 +0530",
"template_file_name": "[data.1] appvolumes/packages_templates/template.vmdk",
"template_version": "2.10.0.709",
"missing": false,
"protected": true,
"agent_version": "4.5.0.922D",
"capture_version": "4.0",
"free_mb": 0,
"total_mb": 0,
"attachment_limit": 2,
"reachable": true,
"provision_duration": "2 minutes",
"primordial_os_id": 2,
"primordial_os_name": "Windows 10 (x64)"
}
}
400
Data missing from request.
Returns string of type(s) application/json
Operation doesn't return any data structure
403
Session expired. Create a session and make the request with the _session_id cookie.
Returns UnauthorizedError of type(s) application/json
{
"error": "Session expired. Please login again."
}
string
error
Optional
Session expired. Create a session using and make the request with the _session_id cookie.
404
Package was not found.
Returns GetPackageNotFoundError of type(s) application/json
{
"errors": [
{
"title": "Incorrect Package id 0 passed",
"meta": {
"manager": {
"title": "Incorrect Package id 0 passed"
}
}
}
]
}
array of object
errors
Optional
errors
500
Failed to update the Package.
Returns ServerError of type(s) application/json
{
"error": "Server Error",
"detail": "Unexpected server error."
}
string
error
Optional
Server Error.
string
detail
Optional
Details of error. Exact error format subject to change depending on type of error.