chart-theme

Embed
Preview of the card
<a href="https://lucida.15-204-158-166.sslip.io/docs/ref-chart-theme"><img src="https://lucida.15-204-158-166.sslip.io/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/6606296a-81ae-4ba3-8651-b453ce85d60f/social-card.svg?v=3e7ae33eec8b" alt="chart-theme" width="600" height="315"></a>
GEThttps://lucida.15-204-158-166.sslip.io/v1/orgs/{org_id}/chart-theme

Parameters

org_idstringpathrequired

Code samples

cURL
curl -X GET "https://lucida.15-204-158-166.sslip.io/v1/orgs/{org_id}/chart-theme"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "source": "string",
  "theme": {
    "dark": [
      "string"
    ],
    "light": [
      "string"
    ]
  }
}
Schema
sourcestring
project | org; null when the shipped palette applies.
themeTheme
Show child parameters
darkstring[]required
lightstring[]required
404
PUThttps://lucida.15-204-158-166.sslip.io/v1/orgs/{org_id}/chart-theme

Parameters

org_idstringpathrequired

Request body

application/json

Eight #rrggbb series colours for light mode and eight for dark mode.

darkstring[]required
lightstring[]required
{
  "dark": [
    "string"
  ],
  "light": [
    "string"
  ]
}

Code samples

cURL
curl -X PUT "https://lucida.15-204-158-166.sslip.io/v1/orgs/{org_id}/chart-theme" \
  -H "Content-Type: application/json" \
  -d '{"dark":["string"],"light":["string"]}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

400
403
404
DELETEhttps://lucida.15-204-158-166.sslip.io/v1/orgs/{org_id}/chart-theme

Parameters

org_idstringpathrequired

Code samples

cURL
curl -X DELETE "https://lucida.15-204-158-166.sslip.io/v1/orgs/{org_id}/chart-theme"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

204
403
404
GEThttps://lucida.15-204-158-166.sslip.io/v1/projects/{project_id}/chart-theme

Parameters

project_idstringpathrequired

Code samples

cURL
curl -X GET "https://lucida.15-204-158-166.sslip.io/v1/projects/{project_id}/chart-theme"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 The theme the project's charts use: its own, else the org's

Same as 200 · GET /v1/orgs/{org_id}/chart-theme

404
PUThttps://lucida.15-204-158-166.sslip.io/v1/projects/{project_id}/chart-theme

Parameters

project_idstringpathrequired

Request body

application/json

Eight #rrggbb series colours for light mode and eight for dark mode.

darkstring[]required
lightstring[]required
{
  "dark": [
    "string"
  ],
  "light": [
    "string"
  ]
}

Code samples

cURL
curl -X PUT "https://lucida.15-204-158-166.sslip.io/v1/projects/{project_id}/chart-theme" \
  -H "Content-Type: application/json" \
  -d '{"dark":["string"],"light":["string"]}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

400 A colour is too faint, malformed or repeated
403
404
DELETEhttps://lucida.15-204-158-166.sslip.io/v1/projects/{project_id}/chart-theme

Parameters

project_idstringpathrequired

Code samples

cURL
curl -X DELETE "https://lucida.15-204-158-166.sslip.io/v1/projects/{project_id}/chart-theme"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

204 The project falls back to the org theme
403
404
Updated