v1

latestOpenAPI 3.0.12026-07-26152262362.2 KB
Settings

Create a custom theme

Creates a new custom color theme. Requires Cloud Analytics Admin permission.

post/analytics/v1/settings/themes

Request body

namestring required

The display name of the custom theme.

primaryColorstring required

A color in hex notation. Accepts #RGB, #RRGGBB, or #RRGGBBAA.

Example request

{
  "primaryColor": "#1A73E8",
  "colors": {
    "light": [
      "#1A73E8"
    ],
    "dark": [
      "#1A73E8"
    ]
  }
}

Response

Created - Custom theme created successfully.

idstring required

The unique identifier of the custom theme.

namestring required

The display name of the custom theme.

primaryColorstring required

A color in hex notation. Accepts #RGB, #RRGGBB, or #RRGGBBAA.

createTimestring date-time

The creation time of the custom theme.

updateTimestring date-time

The time when the custom theme was last updated.

Example response

{
  "primaryColor": "#1A73E8",
  "colors": {
    "light": [
      "#1A73E8"
    ],
    "dark": [
      "#1A73E8"
    ]
  }
}