Return the server's cPanel styles

This function lists the server's cPanel styles for the Paper Lantern theme.

Important:

This function only works in the Paper Lantern theme. We deprecated Paper Lantern in cPanel & WHM version 100 and will remove this function in version 110. This function will not work in the Jupiter theme.

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/list_styles
Request samples
whmapi1 --output=jsonpretty \
  list_styles
Response samples
application/json
{
  • "data": {
    • "list": [
      • {
        • "default": 1,
        • "display_name": "Glass",
        • "name": "glass",
        • "preview": 1,
        • "type": "default"
        }
      ]
    },
  • "metadata": {
    • "command": "list_styles",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}