Child pages
  • WHM API 1 Functions - package_manager_upgrade
Skip to end of metadata
Go to start of metadata

Description

This function downloads and installs package updates on the server.

Examples 


 JSON API
https://hostname.example.com:2087/cpsess##########/json-api/package_manager_upgrade?
api.version=1
 XML API
https://hostname.example.com:2087/cpsess##########/xml-api/package_manager_upgrade?
api.version=1 
 Command Line
whmapi1 package_manager_upgrade
 Output (JSON)
{  
   "data":{  
      "build":10111
   },
   "metadata":{  
      "version":1,
      "reason":"OK",
      "result":1,
      "command":"package_manager_upgrade"
   }
}
 Output (XML)
<result>
    <data>
        <build>10111</build>
    </data>
    <metadata>
        <version>1</version>
        <reason>OK</reason>
        <result>1</result>
        <command>package_manager_upgrade</command>
    </metadata>
</result> 


Note:

Use WHM's API Shell interface (WHM >> Home >> Development >> API Shell) to directly test WHM API calls.

Parameters

This function does not accept parameters.

Returns

ReturnTypeDescriptionPossible valuesExample
buildinteger

A valid Process ID (PID).

An integer value. 10111