Themes โ
Theme configurations control the visual styling of the S-Launch UI for a tenant โ colors, fonts, logos, and other branding-level settings. Multiple theme configs can be stored; exactly one is active at any time.
Scopes โ
| Scope | Reach |
|---|---|
themes:read | Listing, reading, fetching the active theme, viewing filters. |
themes:write | Creating, updating, deleting themes, and activating one. |
Endpoints โ
List Theme Configs โ
GET /api/themes/
Returns a page of theme configurations.
Required scope: themes:read ยท also accepts API key
Query parameters โ standard pagination set; see Conventions โบ Pagination. Defaults: sort_by=created, sort_order=desc, hydrate=true.
Response 200 โ ThemeConfigInDbCursorPage
Get Active Theme โ
GET /api/themes/active
Returns the currently active theme โ what the UI is rendering right now.
Required scope: themes:read
Response 200 โ ThemeRead
Get Theme Filter Metadata โ
GET /api/themes/filters
Returns filter/operator/sort options for List Theme Configs.
Required scope: themes:read
Response 200 โ open metadata object.
Get Theme Config by ID โ
GET /api/themes/{id}
Returns a single theme configuration.
Required scope: themes:read ยท also accepts API key
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | Theme ID. |
Response 200 โ ThemeRead
Create Theme Config โ
POST /api/themes/
Creates a new theme configuration.
Required scope: themes:write
Request body โ ThemeWriteCreate
Response 201 โ ThemeRead
Update Theme Config by ID โ
PUT /api/themes/{id}
Replaces the theme configuration.
Required scope: themes:write
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | Theme ID. |
Request body โ ThemeWriteReplace
Response 200 โ ThemeRead
Patch Theme Config โ
PATCH /api/themes/{id}
Partial theme configuration update.
Required scope: themes:write
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | Theme ID. |
Request body โ ThemeWriteUpdate
Response 200 โ ThemeRead
Delete Theme Config by ID โ
DELETE /api/themes/{id}
Deletes a theme configuration. The active theme cannot be deleted โ activate another theme first.
Required scope: themes:write
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | Theme ID. |
Response 204 โ empty.
Activate Theme โ
POST /api/themes/{id_or_name}/activate
Switches the active theme to the specified configuration. The path segment accepts either the theme's ID or its unique name โ whichever is more convenient.
Required scope: themes:write
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id_or_name | string | yes | Theme ID or unique name to activate. |
Response 200 โ ThemeRead โ the now-active theme.
See also โ
- UI Variables โ finer-grained control over individual style variables.
- Mail Templates โ branded email content (separate from in-app theming).
