Tenants and branding¶
A tenant holds the branding that client applications display. Every read is public, because a login page needs
the theme before anyone is logged in. Changes need the global functionality TENANT_MANAGEMENT.
Tenant definition¶
curl -X PUT "$CORE/tenants/acme" -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' \
-d '{"title": "ACME Knowledge Graph", "contactEmail": "support@acme.example", "copyright": "ACME"}'
| Action | Request |
|---|---|
| List tenants | GET /v4/tenants |
| Read | GET /v4/tenants/{name} |
| Create or update | PUT /v4/tenants/{name} |
Theme¶
| Element | Set | Read |
|---|---|---|
| Font | PUT /v4/tenants/{name}/theme/font |
Part of the CSS |
| Colors | PUT /v4/tenants/{name}/theme/colors |
Part of the CSS |
| Custom CSS | PUT /v4/tenants/{name}/theme/customCss (text/plain) |
Part of the CSS |
| Complete CSS | GET /v4/tenants/{name}/theme/css |
|
| Favicon | PUT /v4/tenants/{name}/theme/favicon |
GET /v4/tenants/{name}/theme/favicon |
| Logo | PUT /v4/tenants/{name}/theme/logo |
GET /v4/tenants/{name}/theme/logo |
| Background | PUT /v4/tenants/{name}/theme/background |
GET /v4/tenants/{name}/theme/background |
Images are uploaded as multipart/form-data in a part named file. Logos and backgrounds exist in a dark and a bright
variant, selected with darkMode (default true).
Font:
A color scheme consists of the groups brandColors, greys, blacks, stateColors and linkColors. Every color has
to be defined: an incomplete scheme is rejected with 400. The default tenant is named default, and its theme is a
useful template.