Domains

Create or update domain theme

Creates or updates theme settings for the domain. Colors are 6- or 8-character hex strings without the leading # (RRGGBB, or RRGGBBAA for transparency).

post/domains/theme/{domainId}

Request

  • Base URL: https://api.short.io
  • URL: https://api.short.io/domains/theme/{domainId}
  • Auth: API key in header Authorization

Path parameters

domainIdinteger required

Domain ID

Request body

primaryColorstring nullable

6 or 8-character hex color without # prefix (RRGGBB or RRGGBBAA)

secondaryColorstring nullable

6 or 8-character hex color without # prefix (RRGGBB or RRGGBBAA)

backgroundColorstring nullable

6 or 8-character hex color without # prefix (RRGGBB or RRGGBBAA)

contentBgColorstring nullable

6 or 8-character hex color without # prefix (RRGGBB or RRGGBBAA)

textColorstring nullable

6 or 8-character hex color without # prefix (RRGGBB or RRGGBBAA)

headingColorstring nullable

6 or 8-character hex color without # prefix (RRGGBB or RRGGBBAA)

linkColorstring nullable

6 or 8-character hex color without # prefix (RRGGBB or RRGGBBAA)

buttonTextColorstring nullable

6 or 8-character hex color without # prefix (RRGGBB or RRGGBBAA)

fontFamilystring nullable

CSS font-family for themed pages

customPropertiesobject nullable

Custom CSS variable key/value pairs

Example request

{
  "primaryColor": "FF0000",
  "secondaryColor": "FF0000",
  "backgroundColor": "FF0000",
  "contentBgColor": "FF0000",
  "textColor": "FF0000",
  "headingColor": "FF0000",
  "linkColor": "FF0000",
  "buttonTextColor": "FF0000",
  "fontFamily": "Inter, sans-serif",
  "customProperties": {
    "--accent": "#ff0066"
  }
}

Response

Default Response

Changes

No recorded changes to this operation across all 1 revision of this API.