branding
5 endpoints.
/api/branding Bearer tokenRead the deployment branding
The long-form and short names, the logo and the support address this deployment shows in place of the Botree defaults. Null fields mean the default is in use.
Responses
| Status | Description | Body |
|---|---|---|
| 200 | The current branding. | DeploymentBranding |
| 401 | The access token is missing or invalid. | ErrorResponse |
| 500 | The deployment branding could not be read. | ErrorResponse |
/api/branding Bearer tokenSet the deployment's names and support address
Sets the long-form name shown in the footer, page titles, notification emails and the dashboard top bar on wide screens, and the short name shown as the dashboard wordmark and the top bar title on narrow screens. Either falls back to the other when only one is set; send null or an empty string to clear one, and omit a field to leave it unchanged. The footer keeps a "Powered by Botree LRS" credit while a custom name or logo is set. The support address is the one the public /support pages tell people to write to for help, support@botreeinc.com until one is set. Requires a superuser's access token.
| Field | Type | Required | Description |
|---|---|---|---|
| display_name | string | null | no | The long-form name to show; send null or an empty string to restore the default. Omit to leave it unchanged. at most 100 characters |
| short_name | string | null | no | The short name for the dashboard wordmark and the top bar on narrow screens; send null or an empty string to fall back to the long-form name. Omit to leave it unchanged. at most 40 characters |
| support_email | string | null | no | The address the public /support pages tell people to write to for help; stored lowercased. Send null or an empty string to restore the default, support@botreeinc.com. Omit to leave it unchanged. at most 254 characters |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | The updated branding. | DeploymentBranding |
| 400 | The request body failed validation. | ErrorResponse |
| 401 | The access token is missing or invalid. | ErrorResponse |
| 403 | The access token's subject is not a superuser. | ErrorResponse |
| 500 | The deployment branding could not be written to. | ErrorResponse |
/api/branding/logo PublicServe the deployment logo
The uploaded logo's bytes, with its content type. Public — the header and footer load it as an image, and the browser as the favicon — and 404 while the Botree artwork is in use. The response is cacheable for a year: the pages append a version query that changes with every branding write, so a replaced logo is fetched under a new URL. A `size` query fits a PNG, JPEG or WebP logo inside a square of that many pixels (snapped up to the nearest of 16, 32, 48, 64, 96, 128, 256, 384, 512 or 1024); an SVG or GIF is served as uploaded whatever the size.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| v | query | string | no | Cache-busting version, as the branding endpoints report it. Ignored here. |
| size | query | integer | no | The rendition to serve, in pixels: the image is fitted inside a square of this size (snapped up to the nearest bucket, and never enlarged). Omit for the upload at its full resolution. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | The image, served with the upload's content type. | — |
| 400 | The size query is not a positive integer. | ErrorResponse |
| 404 | No logo has been uploaded. | ErrorResponse |
| 500 | The deployment branding could not be read. | ErrorResponse |
| 502 | The logo could not be read from storage. | ErrorResponse |
/api/branding/logo Bearer tokenUpload the deployment logo
Replaces the logo shown in the header, footer and browser tab with the image in the file part: PNG, JPEG, WebP, GIF or SVG, at most 2 MB. Square artwork fits best. Requires a superuser's access token.
| Field | Type | Required | Description |
|---|---|---|---|
| file | string (binary) | yes | The logo image, as a file part: PNG, JPEG, WebP, GIF or SVG, at most 2 MB. Square artwork fits the header best. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | The updated branding, its logo URL pointing at the new image. | DeploymentBranding |
| 400 | The file part is missing, not an accepted image type, or too large. | ErrorResponse |
| 401 | The access token is missing or invalid. | ErrorResponse |
| 403 | The access token's subject is not a superuser. | ErrorResponse |
| 500 | The image could not be stored, or the write failed. | ErrorResponse |
| 503 | File storage is not configured on this deployment. | ErrorResponse |
/api/branding/logo Bearer tokenRemove the deployment logo
Restores the Botree artwork in the header, footer and browser tab. Requires a superuser's access token.
Responses
| Status | Description | Body |
|---|---|---|
| 200 | The updated branding, with no logo. | DeploymentBranding |
| 401 | The access token is missing or invalid. | ErrorResponse |
| 403 | The access token's subject is not a superuser. | ErrorResponse |
| 500 | The deployment branding could not be written to. | ErrorResponse |