Update current theme

This function applies a new style to the cPanel interface.

Note:

The /usr/local/cpanel/scripts/modify_accounts script allows you to modify the style and theme for many or all accounts on the server. For more information, read our The modify_accounts Script documentation.

SecurityBasicAuth
Request
query Parameters
theme
required
string

The theme name.

Example: theme=paper_lantern
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/Themes/update
Request samples
uapi --output=jsonpretty \
  --user=username \
  Themes \
  update \
  theme='paper_lantern'
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "update",
  • "module": "Themes",
  • "result": {
    • "data": null,
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}