Skip to main content
PUT
/
v1
/
ui
/
preferences
/
theme
Update shared brand theme for all hosted pages
curl --request PUT \
  --url https://api.example.com/v1/ui/preferences/theme \
  --header 'Content-Type: application/json' \
  --data '
{
  "brandName": "<string>",
  "primaryColor": "<string>",
  "themes": {
    "light": {
      "background": "<string>",
      "surface": "<string>",
      "text": "<string>",
      "secondary": "<string>"
    },
    "dark": {
      "background": "<string>",
      "surface": "<string>",
      "text": "<string>",
      "secondary": "<string>"
    }
  },
  "logo": "<string>",
  "fontFamily": "<string>",
  "fontSize": "<string>"
}
'

Body

application/json
brandName
string
required
Minimum string length: 1
primaryColor
string
required
Minimum string length: 1
themes
object
required
fontFamily
string
fontSize
string

Response

200

Brand theme updated successfully