Skip to main content

Upload New Theme

POST 

/hostedpages-srv/themes

This API call uploads a new theme file (e.g., custom.css) via form data to add custom themes to the available themes list.

Theme File Format:

  • Upload CSS files containing CSS custom properties (variables) prefixed with --cid-
  • Define variables for typography, colors, spacing, borders, shadows, and more
  • See the theming guide for complete list of available variables

Request Format:

  • Use multipart/form-data content type
  • Include a theme field with the CSS file path or file content
  • Example: theme: @"path/to/custom.css"

Updating Themes:

  • Upload a new file with the same filename to replace an existing theme
  • All apps using that theme will automatically use the updated version

Related Documentation:

Request

Responses

OK