List all hierarchies in a tenant
Learn more about listing all active hierarchies in a tenant.
Use the List Hierarchy to retrieve all active hierarchies in a tenant. TThe API supports sorting the results using the sort and order query parameters. This API requires the MDM.Data.Hierarchy permission with the READ privilege.
HTTP method and endpoint
Use the following HTTP method and endpoint path to list the active hierarchies in a tenant.
GET https://<environment>.reltio.com/reltio/api/{tenantId}/hierarchies/list/
Replace <environment> with your Reltio environment name and {tenantId} with the tenant identifier.
The following table describes the endpoint path parameters.
| Parameter | Type | Required | Description |
|---|---|---|---|
tenantId | String | Yes | Identifies the tenant whose active hierarchies are returned. |
Query parameters
The following table describes the query parameters.
| Parameter | Type | Required | Description | Accepted values / Default |
|---|---|---|---|---|
sort | String | No | Specifies the hierarchy field used to sort the results. | NAME, CREATED_TIME, or UPDATED_TIME. The default is NAME.
The value is case-insensitive. . |
order | String | No | Specifies the order of the sorted results. This parameter applies with sort. | ASC and DESC. The value is case-insensitive. The default is ASC. |
Request headers
The following request headers must be included.
| Header | Value | Required |
|---|---|---|
Authorization | Bearer <access_token> | Yes |
Request body
This operation does not require a request body.
Example request
Use the following example to see how a complete request is structured.
GET /reltio/api/{tenantId}/hierarchies/list/?sort=name&order=asc
Authorization: Bearer <access_token>
Response body
The response contains an array of active hierarchy objects.
The following table describes the fields returned in the response body.
| Field | Type | Description |
|---|---|---|
hierarchyId | String | The hierarchy ID. |
type | String | The hierarchy type name defined in the business configuration. |
name | String | The hierarchy name. |
hasVersioning | Boolean | Indicates whether the hierarchy is versioned. |
singleInstanceId | String | Optional. If versioning is disabled, the ID of the only hierarchy instance. |
createdBy | String | The username of the user who created the hierarchy. |
createdTime | String | The creation time in ISO 8601 date-time format. |
updatedBy | String | The username of the user who last updated the hierarchy. |
updatedTime | String | The last update time in ISO 8601 date-time format. Only changes to the hierarchy meta-fields are considered. |
Example response
The following example shows a response body that contains an array of active hierarchy objects.
[
{
"hierarchyId": "prd",
"type": "configuration/hierarchyTypes/TypeProduct",
"name": "Product Hierarchy",
"hasVersioning": true,
"createdBy": "john.smith@reltio.com",
"createdTime": "2024-10-10T10:13:30",
"updatedBy": "john.smith@reltio.com",
"updatedTime": "2024-10-10T10:15:30"
},
{
"hierarchyId": "obj",
"type": "configuration/hierarchyTypes/TypeObjects",
"name": "Object Hierarchy",
"hasVersioning": false,
"singleInstanceId": "obj.1",
"createdBy": "john.smith@reltio.com",
"createdTime": "2024-10-10T10:13:30",
"updatedBy": "john.smith@reltio.com",
"updatedTime": "2024-10-10T10:15:30"
}
]