Create a derived element in report
POST {{baseUrl}}/api/model/reports/:reportId/derivedElements
Request Body
{"information"=>{"name"=>"sample derived element"}, "attribute"=>{"objectId"=>"8D679D3711D3E4981000E787EC6DE8A4", "subType"=>"attribute", "name"=>"Category"}, "elements"=>[{"name"=>"Books", "type"=>"list", "options"=>{"display"=>"this_element", "subtotal"=>"this_element", "includeIndividual"=>false}, "text"=>"Books", "elements"=>[{"display"=>"Books", "elementId"=>"h1"}]}, {"id"=>"88430A7BF012403BB18B0E398D4709F7", "name"=>"All Others", "type"=>"all_other", "options"=>{"display"=>"individual_items", "subtotal"=>"this_element"}}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-MSTR-AuthToken | string | (Required) Authorization Token | |
X-MSTR-MS-Instance | string | (Required) Instance ID |