Update a consolidation
PUT {{baseUrl}}/api/model/consolidations/:consolidationId
Request Body
{"information"=>{"destinationFolderId"=>"{{publicReportsFolderId}}", "name"=>"Create Consolidation(Updated)"}, "elements"=>[{"name"=>"element_a", "type"=>"calculation", "expression"=>{"tree"=>{"function"=>"plus", "children"=>[{"type"=>"elements_object", "elements"=>[{"display"=>"20", "elementId"=>"h20", "attribute"=>{"objectId"=>"6E069E4C11D3E4E41000E887EC6DE8A4", "subType"=>"attribute", "name"=>"Customer Age"}}, {"display"=>"Aaby:Alen", "elementId"=>"h7796", "attribute"=>{"objectId"=>"8D679D3C11D3E4981000E787EC6DE8A4", "subType"=>"attribute", "name"=>"Customer"}}]}, {"type"=>"elements_object", "elements"=>[{"display"=>"Addison", "elementId"=>"h1", "attribute"=>{"objectId"=>"8D679D3A11D3E4981000E787EC6DE8A4", "subType"=>"attribute", "name"=>"Customer City"}}]}], "type"=>"operator"}}}, {"name"=>"element_b", "type"=>"calculation", "expression"=>{"tree"=>{"function"=>"plus", "children"=>[{"type"=>"object_reference", "target"=>{"name"=>"element_a"}, "isIndependent"=>0}, {"type"=>"constant", "variant"=>{"type"=>"double", "value"=>"1.0"}}], "type"=>"operator"}}}], "subtotal"=>"disable"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-MSTR-AuthToken | string | (Required) Authorization Token | |
X-MSTR-MS-Changeset | string | (Required) Changeset ID |