Update current theme

This function applies a new theme to the cPanel interface.

Note:

The /usr/local/cpanel/scripts/modify_accounts script allows you to modify the 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=jupiter
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='jupiter'
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "update",
  • "module": "Themes",
  • "result": {
    • "data": { },
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}