- Organization themes can be applied to any room. Their
flowIdisnull. - Room themes belong to one room. Their
flowIdis that room’s ID.
Endpoints
To apply an existing theme to a room, set
themeId with PATCH /api/v2/rooms/{room_id}.
Property sources
The three values that drive a theme live inpropertySources. Each one says where the value comes from:
A theme that uses
target-company needs a company linked to the room. When the room has none, the response includes a warning, and the room shows black and white placeholder colors until you link a company.List themes
GET /api/v2/themes
Returns your organization’s themes. With roomId, it also returns that room’s own themes and roomActiveThemeId, the ID of the theme the room uses.
Query parameters
Room ID. Adds the room’s own themes to the results, and the room’s current theme as
roomActiveThemeId.Response
Response 200
roomActiveThemeId is only included when you pass roomId. data holds the full theme. Besides propertySources, it contains any values someone set by hand in the theme editor.
Create a theme
POST /api/v2/themes
Pass roomId to create a room theme. It’s applied to that room straight away. Leave roomId out to create an organization theme.
Body parameters
Theme name, up to 128 characters. It must be unique (ignoring case) among your organization themes, or among the room’s own themes for a room theme.
Any of
primaryColor, bgColor, and font, as described in Property sources. Values you leave out default to your organization’s brand color, a white background (#FFFFFF), and your organization’s font.Example
Response
Response 200
Update a theme
PATCH /api/v2/themes/{theme_id}
All fields are optional. Only the property sources you send change. Values someone set by hand in the theme editor are kept.
Body parameters
Any of
primaryColor, bgColor, and font, as described in Property sources.Example
warning when it applies.
Promote a room theme
POST /api/v2/themes/{theme_id}/promote
Turns a room theme into an organization theme, so every room can use it. The theme keeps its ID, and the room it came from keeps using it.
Body parameters
Name for the organization theme. Defaults to the current name. Pass a new one if another organization theme already uses that name.
flowId set to null.