Page tree
Skip to end of metadata
Go to start of metadata

 

Description

This function sets a cPanel & WHM server to a specified support tier.

Examples 


 JSON API
https://hostname.example.com:2087/cpsess##########/json-api/set_tier?tier=current
 XML API
https://hostname.example.com:2087/cpsess##########/xml-api/set_tier?tier=current
 Command Line
whmapi0 set_tier tier=current

Notes:

  • You must URI-encode values.
  • For more information and additional output options, read our Guide to WHM API 0 documentation or run the whmapi0 --help command. 
  • We introduced this functionality in cPanel & WHM version 11.52.0.8.

 Output (JSON)
{
    "tier": "current",
    "statusmsg": "Update tier successfully changed to current",
    "status": 1
}
 Output (XML)
<set_tier>
    <status>1</status>
    <statusmsg>Update tier successfully changed to edge</statusmsg>
    <tier>edge</tier>
</set_tier>

Parameters

ParameterTypeDescriptionPossible valuesExample
tierstring

Required

The support tier.

  • edge
  • current
  • release
  • stable
current

 

 

Returns

ReturnTypeDescriptionPossible valuesExample
tierstringThe server's new support tier.
  • edge
  • current
  • release
  • stable
current

status

BooleanWhether the system successfully called the function.
  • 1 — Success.
  • 0 — Failure.

 

1
statusmsgstringThe result of the function.
  • Update tier successfully changed to current
  • An error message.
Update tier successfully changed to current