MetricSetService.addReplaceHierarchy Method
        
 Adds or replaces the given element with the given hierarchy.
 
         
        Parameters
        
            - metricSetId
            
 
            - 
                
Type: String
The ID of the metric set to add the element to. 
            - elementParentId
            
 
            - 
                
Type: String
The ID of the parent object of the element. 
            - elementUniqueName
            
 
            - 
                
Type: String
The name of the element to add (i.e. column name). 
            - hierarchyParentId
            
 
            - 
                
Type: String
The ID of the parent object of the hierarchy. 
            - hierarchyUniqueName
            
 
            - 
                
Type: String
The unique name of the hierarchy. 
            - placement
            
 
            - 
                
Type: PlacementPosition
The placement for this new element. 
            - hierarchyLevelUniqueName
            
 
            - 
                
Type: String
(optional) The unique name of the level, if a hierarchy level is being added.
Optional: True 
            - retainAllElements
            
 
            - 
                
Type: Boolean
(optional) A value indicating whether identical joining elements considered identical and normally removed are retained.
Optional: True 
        
        Return Value
        
Type: jQuery.Promise
        
Value: dundas.entities.MetricSet
        
A promise object that is resolved when the call is complete.
 If successful, the updated dundas.entities.MetricSet is returned.