# POST /MetricSet/AddReplaceHierarchy/{id}/

Adds the specified element + hierarchy to the metric set, or if the element is already on the metric set, updates it to use the hierarchy given.

## Request

Method | Request URI
--- | ---
POST | /API/MetricSet/AddReplaceHierarchy/{id}/?sessionId=value

### URI Parameters

URI Parameter | Description
--- | ---
sessionId | Current session ID.

### Path Parameters

Path Parameter | Description
--- | ---
id | The ID of the metric set to add the element to.

### Request Body

Name: options
Type: Dundas.BI.WebApi.Models.AddReplaceHierarchyOptions

## Response

### Response Body

A Dundas.BI.WebApi.Models.MetricSetData object containing the updated metric set data, or a status code indicating the problem.

© 1999-2021 Dundas Data Visualization, Inc.