Create the prompt

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

Request Body

{"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}}

HEADERS

KeyDatatypeRequiredDescription
X-MSTR-AuthTokenstring(Required) Authorization Token
X-MSTR-MS-Changesetstring(Required) Changeset ID