Unify and manage your data

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.

ParameterTypeRequiredDescription
tenantIdStringYesIdentifies the tenant whose active hierarchies are returned.

Query parameters

The following table describes the query parameters.

ParameterTypeRequiredDescriptionAccepted values / Default
sortStringNoSpecifies the hierarchy field used to sort the results.NAME, CREATED_TIME, or UPDATED_TIME. The default is NAME. The value is case-insensitive. .
orderStringNoSpecifies 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.

HeaderValueRequired
AuthorizationBearer <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.

FieldTypeDescription
hierarchyIdStringThe hierarchy ID.
typeStringThe hierarchy type name defined in the business configuration.
nameStringThe hierarchy name.
hasVersioningBooleanIndicates whether the hierarchy is versioned.
singleInstanceIdStringOptional. If versioning is disabled, the ID of the only hierarchy instance.
createdByStringThe username of the user who created the hierarchy.
createdTimeStringThe creation time in ISO 8601 date-time format.
updatedByStringThe username of the user who last updated the hierarchy.
updatedTimeStringThe 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"
  }
]