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-datacontent type - Include a
themefield 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:
- Theming Guide - Complete reference for all theme variables
- Create New Themes
- Theming Examples
Request
Responses
- 200
- 400
- 401
OK
Bad Request
Unauthorized