Description

This function returns the cPanel & WHM version that a server runs.

Examples 


https://hostname.example.com:2087/cpsess##########/json-api/version?api.version=1
https://hostname.example.com:2087/cpsess##########/xml-api/version?api.version=1
whmapi1 version

{  
   "metadata":{  
      "version":1,
      "result":1,
      "reason":"OK",
      "command":"version"
   },
   "data":{  
      "version":"11.48.0.9999"
   }
}
<result>
    <data>
        <version>11.48.0.9999</version>
    </data>
    <metadata>
        <command>version</command>
        <result>1</result>
        <reason>OK</reason>
        <version>1</version>
    </metadata>
</result>

Parameters

This function does not accept parameters.

Returns

ReturnTypeDescriptionPossible valuesExample
versionstringThe server's cPanel & WHM version.A valid cPanel & WHM version number.
11.48.0.9999