Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

update.save

Description

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

Arguments

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.

{
    'method' => 'update.save',
    'parameters' => {
          'automatic' => 1,
}

Response

{
          'result' => 'success'
 }

Or

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