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":"Metric Prompt with Custom Expression"},"title":"Metric qualification","instruction":"Choose a metric to begin building a qualification.","expressionType":"metric","question":{"predefinedObjects":[{"objectId":"7FD5B69611D5AC76C000D98A4CC5F24F","subType":"metric","name":"Cost"},{"objectId":"381980B211D40BC8C000C8906B98494F","subType":"metric","name":"Discount"}]},"restriction":{"required":false,"allowPersonalAnswers":"none","min":3,"max":10}}'