Theme - Fetch list of all available themes

Fetch list of available theme

GET/tenants/{tenantId}/themes
Authorization
Path parameters
tenantId*string (uuid)

Expects Id of an existing tenant

Query parameters
Header parameters
Response

Indicates successful retrieval for list of available theme

Body
themeIdstring (uuid)

A public property of type Guid (a unique identifier) that has both a getter and a setter method, which allows for getting and setting the value of the themeId property.

themeNamenullable string

A public property of type string that has both a getter and a setter method, which allows for getting and setting the value of the themeName property.

themeObjectobject

Class for representing the theme object.

Request
const response = await fetch('/tenants/{tenantId}/themes', {
    method: 'GET',
    headers: {
      "Authorization": "Bearer JWT"
    },
});
const data = await response.json();
Response
[
  {
    "themeId": "123e4567-e89b-12d3-a456-426614174000",
    "themeName": "text",
    "themeObject": {
      "name": "text",
      "dataColors": [
        "text"
      ],
      "background": "text",
      "foreground": "text",
      "tableAccent": "text",
      "textClasses": {
        "label": {
          "color": "text",
          "fontFace": "text",
          "fontSize": 0
        },
        "callout": {
          "color": "text",
          "fontFace": "text",
          "fontSize": 0
        },
        "title": {
          "color": "text",
          "fontFace": "text",
          "fontSize": 0
        },
        "header": {
          "color": "text",
          "fontFace": "text",
          "fontSize": 0
        }
      }
    }
  }
]

Last updated