Skip to content

Update the account theme

Request

Update the Theme of the account.

Security
bearerToken
Path
contextTypestringrequired
contextIdstringrequired
Bodyapplication/jsonrequired
accentColourobject

The hex code of the colour to be used to theme the account

Example:"#333666"
showRecentlyAddedAssetsboolean or null

Whether to include a preview of recently added assets on the homepage

Example:true
curl -i -X PATCH \
  'https://api-v2.dash.app/context-types/{contextType}/contexts/{contextId}/theme' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "accentColour": {
      "value": "example value"
    },
    "showRecentlyAddedAssets": true
  }'

Responses

Success

Bodyapplication/json
resultobjectrequired
permittedActionsArray of objectsrequired
Response
{ "result": { "accentColour": "#333666", "logoUrl": "https://example.com", "loginImageUrl": "https://example.com", "faviconUrl": "https://example.com", "homepageImageUrl": "https://example.com", "showRecentlyAddedAssets": true, "contextType": "ACCOUNT", "contextId": "cfb665ca-ce35-4418-b9d5-70ee815db4bd" }, "permittedActions": [ {} ] }