Web API Reference Guide > Available API Methods > Library Methods > The downloadLibraryVersionFile Method

The downloadLibraryVersionFile 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

Usage Example

Request

GET /ZendServer/Api/downloadLibraryVersionFile?libVersionId=10

Response

HTTP/1.0 200 OK

Content-disposition: attachment;

filename=”myLibrary-v1.1.zpk”

Content-type: application/vnd.zend.applicationpackage

[...binary data follows...]

----bla-bla-bla--

 

Read Also

  Available API Methods    
  Library Methods