/Administration/packages POST
Overview
[ADMIN] PackageManager upload package.
Summary
Uploads a module loadable package via a multi-part form request. The only parameter is 'upgrade_zip' which must contain a valid module loadable zip file.
Sample Request
POST /rest/v11_1/Administration/packages HTTP/1.1
Host: null
Content-Type: multipart/form-data
Accept: application/json
OAuth-Token: 3bbd6227-cfd0-45c7-8a6e-3c737e3c73ff
Content-Type: multipart/form-data; boundary=---------------------------9051914041544843365972754266
Content-Length: 554
-----------------------------9051914041544843365972754266
Content-Disposition: form-data; name="upgrade_zip"; filename="module.zip"
Content-Type: application/zip
{content-data}
-----------------------------9051914041544843365972754266--
Response
Returns status 200 OK and file hashes for install and delete package if request is successful.
{
"file_install": "5d4b4614421586fd2111714abf622392",
"unFile": "5d4b4614421586fd2111714abf622392"
}
Otherwise returns status 4xx with errors.
{
"error": "upload_package_error",
"error_message": "Issue with the manifest",
"error_description": "The uploaded file is not compatible with this version of Sugar: 11.3.0"
}
Change Log
Version | Change |
---|---|
v11.8 |
Added |