update.save

Description

Initiate a manual software upgrade via a file upload or an automatic update.

Arguments

name

required

value type

default value

name

required

value type

default value

FILE_update

no

filehandle

none

automatic

no

boolean

0

Example Requests & Responses

Example One

Request

Initiate a manual software upgrade via a file upload. This must be done with an enctype of "multipart/form-data".

{     'method' => 'update.save',     'parameters' => {           'upload_file',           'FILE_update' => <Filehandle>, }

Response

{           'result' => 'success'  }

Or

{           'result' => 'error',           'error' => 'An Error String',           'error_key' => 'AN_ERROR_LANGUAGE_KEY',  }

Example Two

Request

Initiate automatic software upgrade.

Response

Or

Return to Documentation Home I Return to Sangoma Support