Create a theme

admin_post_themes(
  name,
  settings_json,
  organization_ids = NULL,
  logo_file_id = NULL
)

Arguments

name

string required. The name of this theme.

settings_json

string required. The JSON-encoded theme configuration.

organization_ids

array optional. List of organization ID's allowed to see this theme.

logo_file_id

string optional. The ID of the logo image file.

Value

A list containing the following elements:

id

integer, The ID of this theme.

name

string, The name of this theme.

organizationIds

array, List of organization ID's allowed to use this theme.

settings

string, The theme configuration object.

logoFile

list, A list containing the following elements:

  • id integer, The ID of the logo image file.

  • downloadUrl string, The URL of the logo image file.

createdAt

string,

updatedAt

string,