Logo
MicroStrategy REST API API Documentation

Publish a dossier

POST {{baseUrl}}/api/library

Publish a document to users or user groups in a specific project. This makes the document available in the library of each user it is published to. You can publish a document or an instance of a document; you can publish a document to any user, but you can only publish an instance to the current user. You obtain the authorization token needed to execute the request using POST /auth/login; you obtain the project ID using GET /projects. You pass the authorization token and the project ID in the request header. You provide information about the document to be published in the body parameter of the request; this includes the document or instance to be published and the users it will be published to.

 

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 POST 'baseUrl/api/library' -H 'X-MSTR-AuthToken: authToken' -H 'X-MSTR-ProjectID: projectId' -H 'Content-Type: application/json' -d '{"id":"rd_dossierId","recipients":[{"id":"rd_userGroupId"},{"id":"rd_userGroup2Id"}],"isInstance":"false"}'

ENDPOINTS