Logo
MicroStrategy REST API API Documentation

Create the prompt

POST {{baseUrl}}/api/model/prompts

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
X-MSTR-AuthToken
string (Required) Authorization Token
X-MSTR-MS-Changeset
string (Required) Changeset ID




RESPONSES

status





Curl
curl -X POST 'baseUrl/api/model/prompts' -H 'X-MSTR-AuthToken: authToken' -H 'X-MSTR-MS-Changeset: rd_changesetId' -d '{"information":{"destinationFolderId":"publicReportsFolderId","subType":"prompt_elements","name":"Call Center In USA"},"title":"Call Center In USA","instruction":"Choose elements of Call Center.","question":{"attribute":{"objectId":"8D679D3511D3E4981000E787EC6DE8A4","subType":"attribute","name":"Call Center"},"listAllElements":false,"filter":{"objectId":"C66FB1B411D3EB0CC000B4B2D86C964F","subType":"filter","name":"CountryInUSA"}},"defaultAnswer":{"elements":[{"display":"San Diego","elementId":"h2"},{"display":"San Francisco","elementId":"h4"},{"display":"Salt Lake City","elementId":"h6"}]},"restriction":{"required":false,"allowPersonalAnswers":"none","min":2,"max":5}}'

ENDPOINTS