Logo
MicroStrategy REST API API Documentation

Change the datasets on a dossier instance

PATCH {{baseUrl}}/api/dossiers/:dossierId/instances/:instanceId/datasets

Change the datasets of a specific dossier instance with different patch operations, including adding, editing and removing datasets. You need auth token from POST /auth/login, project Id from GET /projects, dossier instance ID generated by POST /dossiers/{dossierId}/instances and filter applied criteria in the request body.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
X-MSTR-AuthToken
string (Required) Authorization token
X-MSTR-ProjectID
string (Required) Project ID
Content-Type
string




RESPONSES

status





Curl
curl -X PATCH 'baseUrl/api/dossiers/:dossierId/instances/:instanceId/datasets' -H 'X-MSTR-AuthToken: authToken' -H 'X-MSTR-ProjectID: projectId' -H 'Content-Type: application/json' -d '{"operationList":[{"op":"addElements","path":"/datasets","value":[{"id":"datasetId","name":"Test Dataset"}]}]}'

ENDPOINTS