30.07.2012 Views

Reference Guide

Reference Guide

Reference Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The applicationUpdate Method<br />

Web API <strong>Reference</strong> <strong>Guide</strong><br />

This method allows you to update an existing application. The package you provide must contain the<br />

same application. Additionally, any new parameters or new values for existing parameters must be<br />

provided. This process is asynchronous, meaning the initial request will wait until the package is uploaded<br />

and verified, and the initial response will show information about the new version being deployed.<br />

However, the staging and activation process will proceed after the response is returned. You must<br />

continue checking the application status using the applicationGetStatus method until the deployment<br />

process is complete.<br />

Required Permissions: full<br />

HTTP method: POST<br />

Supported by Editions: All<br />

Request Parameters:<br />

Because this method contains a file upload, parameters must be encoded using the ‘multipart/form-data’<br />

content type.<br />

Parameter Type Required Description<br />

appId Integer Yes The application ID you would like to update.<br />

appPackage File Yes The application package file. The content type for the file<br />

must be ‘application/vnd.zend.applicationpackage’.<br />

ignoreFailures Boolean No Ignore failures during staging if only some servers report<br />

failures. If all servers report failures the operation will fail in<br />

any case.<br />

The default value is FALSE, meaning any failure will return<br />

an error.<br />

userParams Hashmap No Set values for user parameters that are defined in the<br />

package.<br />

Any required parameters that were not defined in a previous<br />

deployment of the same application will be required. Any<br />

parameters with already defined values are not required, but<br />

may be specified again if you would like to set a new value.<br />

Expected Response Code: 202 Accepted - For more information see Response Format.<br />

Response Type: applicationInfo<br />

383

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!