Create user hierarchy

POST {{baseUrl}}/api/model/hierarchies

Request Body

{"information"=>{"destinationFolderId"=>"{{publicReportsFolderId}}", "subType"=>"dimension_user", "name"=>"TimeHierarchy"}, "useAsDrillHierarchy"=>true, "attributes"=>[{"objectId"=>"8D679D4411D3E4981000E787EC6DE8A4", "name"=>"Month", "entryPoint"=>true, "elementDisplayOption"=>"all_elements"}, {"objectId"=>"8D679D4511D3E4981000E787EC6DE8A4", "name"=>"Month of Year", "entryPoint"=>true, "elementDisplayOption"=>"all_elements"}, {"objectId"=>"8D679D4A11D3E4981000E787EC6DE8A4", "name"=>"Quarter", "entryPoint"=>true, "elementDisplayOption"=>"all_elements"}, {"objectId"=>"8D679D5111D3E4981000E787EC6DE8A4", "name"=>"Year", "entryPoint"=>true, "elementDisplayOption"=>"all_elements"}, {"objectId"=>"96ED3EC811D5B117C000E78A4CC5F24F", "name"=>"Day", "entryPoint"=>true, "elementDisplayOption"=>"limited_elements", "limit"=>50}], "relationships"=>[{"parent"=>{"objectId"=>"8D679D4411D3E4981000E787EC6DE8A4", "subType"=>"attribute", "name"=>"Month"}, "child"=>{"objectId"=>"96ED3EC811D5B117C000E78A4CC5F24F", "subType"=>"attribute", "name"=>"Day"}}, {"parent"=>{"objectId"=>"8D679D4511D3E4981000E787EC6DE8A4", "subType"=>"attribute", "name"=>"Month of Year"}, "child"=>{"objectId"=>"8D679D4411D3E4981000E787EC6DE8A4", "subType"=>"attribute", "name"=>"Month"}}, {"parent"=>{"objectId"=>"8D679D4A11D3E4981000E787EC6DE8A4", "subType"=>"attribute", "name"=>"Quarter"}, "child"=>{"objectId"=>"8D679D4411D3E4981000E787EC6DE8A4", "subType"=>"attribute", "name"=>"Month"}}, {"parent"=>{"objectId"=>"8D679D5111D3E4981000E787EC6DE8A4", "subType"=>"attribute", "name"=>"Year"}, "child"=>{"objectId"=>"8D679D4411D3E4981000E787EC6DE8A4", "subType"=>"attribute", "name"=>"Month"}}, {"parent"=>{"objectId"=>"8D679D5111D3E4981000E787EC6DE8A4", "subType"=>"attribute", "name"=>"Year"}, "child"=>{"objectId"=>"8D679D4A11D3E4981000E787EC6DE8A4", "subType"=>"attribute", "name"=>"Quarter"}}]}

HEADERS

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