The downloadLibraryVersionFile Web API Method
Download the .zpk file specified by the library version identifier.
Version: 1.5
Required Permissions: Full
HTTP method: GET
Supported by Editions: Zend Server
Request Parameters:
Because this method is expected to contain a file upload, parameters are expected to be encoded using the ‘multipart/form-data’ content type.
Parameter |
Type |
Required |
Description |
libraryVersionId |
Integer |
Yes |
Library version identifier. Note that a codetracing identifier is provided as part of the LibraryGetStatus xml response. |
Expected Response Code: 200 OK - For more information see Response Format.
Response Type: libraryVersionInfo
Possible Action Specific Error Codes:
HTTP Code |
Error Code |
Description |
404 |
noSuchLibraryVersion |
The requested library could not be found. |
Example
|
RequestGET /ZendServer/Api/downloadLibraryVersionFile?libVersionId=10 ResponseHTTP/1.0 200 OKContent-disposition: attachment;filename=”myLibrary-v1.1.zpk”Content-type: application/vnd.zend.applicationpackage[...binary data follows...]----bla-bla-bla-- |