Apply dashboard themes
This workflow sample demonstrates how to apply a theme to a dashboard instance through POST /api/v2/dossiers/{dossierId}/instances/{instanceId}/themes/{themeId}
tip
Get the authorization token needed to execute the request with POST /api/auth/login.
Get the project ID from GET /api/projects.
Apply a theme to dashboard instance
Endpoint: POST /api/v2/dossiers/{dossierId}/instances/{instanceId}/themes/{themeId}
Sample path parameters:
dossierId
: the object ID of the dashboard;instanceId
: the ID of dashboard instance;themeId
: the object ID of the theme
Sample Request Header:
"accept": "application/json"
"X-MSTR-AuthToken": "pisu5dkkutqfblaamdomgr00ch"
"X-MSTR-ProjectID": "B19DEDCC11D4E0EFC000EB9495D0F44F"
Sample Request Body: None
Sample Curl:
curl -X 'POST' \
'http://localhost:8282/consume-dev/api/v2/dossiers/119DEDCC11D4E0EFC000EB9495D0F444/instances/4A2F9667C842E3BB9D0CFFABE6F3ED53/themes/4A2F9667C842E3BB9D0CFFABE6F3ED5B' \
-H 'accept: */*' \
-H 'X-MSTR-AuthToken: mni11f26j5acml4opgf0gckmnk' \
-H 'X-MSTR-ProjectID: B19DEDCC11D4E0EFC000EB9495D0F44F' \
-d ''
Sample Response Body: N/A
Sample Response Code: 201 (Dashboard theme instance is saved to metadata.)