Console: client-branding
Copy as MarkdownThese routes are on the console, port 3375. They take an API token as Authorization: Bearer ndt_...; see API tokens.
Name, logo and links the desktop clients show.
Show the name, logo and links the desktop clients show.
The client branding as the server API stores it, which is what the page edits. In NeoDesk mode the clients get NeoDesk's own branding instead.
Needs branding.edit. neodesk client-branding show calls it.
200: Done (application/json)
| Field | Type | Required |
|---|---|---|
success |
true |
yes |
data |
ClientBranding | yes |
| Error | When |
|---|---|
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |
| 502 | The server API could not be reached or refused the call |
Change the name, logo and links the desktop clients show.
The console sends company_name, phone, email, website, accent_color, support_contact and colors to the server API as given, clear_logo when it is true, and otherwise logo when there is one. A server whose client branding gets a name, contact or logo of its own switches to custom mode. The server API refusing a value is answered with 502 and its message.
Needs branding.edit. neodesk client-branding set calls it.
Request body, application/json:
200: Done (application/json)
| Field | Type | Required |
|---|---|---|
success |
true |
yes |
data |
ClientBrandingSaved | yes |
revision |
string |
| Error | When |
|---|---|
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |
| 502 | The server API could not be reached or refused a value, such as "accent_color must be #RGB or #RRGGBB" |