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 -X POST 'baseUrl/api/model/prompts' -H 'X-MSTR-AuthToken: authToken' -H 'X-MSTR-MS-Changeset: rd_changesetId' -d '{"information":{"destinationFolderId":"publicReportsFolderId","subType":"prompt_expression","name":"Hierarchy - ListAll"},"title":"Hierarchies","instruction":"Choose a hierarchy to begin building a qualification.","expressionType":"hierarchy","question":{"displayForms":"all_forms","listAllHierarchies":true},"restriction":{"required":false,"allowPersonalAnswers":"multiple","maxElementsPerSelection":100,"min":2,"max":5}}'