Unify and manage your data

Create hierarchy connections

Learn more about how to use the hierarchy connections API to create one or more connections in a hierarchy instance.

Use the Create Hierarchy connections to create new connections in a hierarchy instance. This operation requires the MDM.Data.Hierarchy permission with the CREATE privilege.

HTTP method and endpoint

Use the following HTTP method and endpoint path to submit the request:

POST https://<environment>.reltio.com/reltio/api/{tenantId}/hierarchies/{instanceId}/connections

Request headers

The following request headers must be included.

HeaderValueRequired
AuthorizationBearer <token>Yes

Query parameters

The following table describes the query parameters and their values.

ParameterTypeRequiredDescriptionAccepted values / Default
optionsStringNoControls whether the connections in the request are validated against the structural rules configured for the hierarchy type. If you omit this option, the operation validates the requested connections and returns an error if any of them violate a structural rule. Existing structural rule violations elsewhere in the hierarchy don't prevent the requested connections from being created.ignoreValidation skips structural validation. By default, validation is performed.

Request body

The request body is a JSON array of connection definition objects.

FieldTypeRequiredDescription
parentObjectYes, when you identify the parent entity by crosswalk The object that contains the parent details for the new connection.
Note: Do not pass both parentId and the parent crosswalk (type, value, and sourcetable) object for the same connection.
parent.typeStringYes, when you use a crosswalk for the parent entityThe source type of the crosswalk that refers to the parent entity. Example:configuration/sources/XYZ
parent.valueStringYes, when you use a crosswalk for the parent entityThe value of the crosswalk that refers to the parent entity. Example: I12345
parent.sourceTableStringNoThe source table of the crosswalk that refers to the parent entity. Example: Users
parentIdStringYes, when you identify the parent entity by entity ID The entity ID of the parent entity. Either the parent entity or the child entity must already be part of the hierarchy that you are modifying.
childObjectYes, when you identify the child entity by crosswalk The object that will contain child details for the new connection..
Note: Do not pass both childId and the child crosswalk (type, value, and sourcetable) object for the same connection.
child.typeStringYes, when you use a crosswalk for the child entityThe source type of the crosswalk that refers to the child entity. Example: configuration/sources/XYZ
child.valueStringYes, when you use a crosswalk for the child entityThe value of the crosswalk that refers to the child. Example: I54321
child.sourceTableStringNoSource table of the crosswalk that refers to the child entity. Example: Users
childIdStringYes, when you identify the child entity by entity ID The entity ID of the child entityobject. Either the parent entity or the child entity must already be part of the hierarchy that you are modifying.
startDateStringNoThe start effective date of the connection. Format: YYYY-MM-DD.
endDateStringNoThe end effective date of the connection. Format: YYYY-MM-DD.

Example request

Use the following example to see how a complete request is structured with headers.

POST /{instanceId}/connections
Authorization: Bearer <token>

[
    {
        "parent": {
            "type": "configuration/sources/XYZ",
            "value": "I12345",
            "sourceTable": "USERS"
        },
        "child": {
            "type": "configuration/sources/Reltio",
            "value": "cldId"
        },
        "startDate": "2024-01-01",
        "endDate": "2026-12-31"
    },
    {
        "parentId": "cldId",
        "childId": "grdcldId",
        "startDate": "2024-05-01",
        "endDate": "2025-12-31"
    }
]

Response fields

The following table describes the fields returned in the response body, which is an array of hierarchy connection objects.

FieldTypeDescription
connectionIdStringThe connection ID.
parentIdStringThe entity ID of the parent object.
childIdStringThe entity ID of the child object.
startDateStringOptional. The start effective date of the connection in ISO 8601 date format.
endDateStringOptional. The end effective date of the connection in ISO 8601 date format.
createdByStringThe username of the user who created the connection.
createdTimeStringThe time when the connection was created, in ISO 8601 date-time format.
updatedByStringThe username of the user who last updated the connection.
updatedTimeStringThe time when the connection was last updated, in ISO 8601 date-time format.

Example response

The following example shows the response body.

[
    {
        "connectionId": "connId1",
        "parentId": "prtId1",
        "childId": "cldId1",
        "startDate": "2024-01-01",
        "endDate": "2026-12-32",
        "createdBy": "john.smith@reltio.com",
        "createdTime": "2024-10-10T10:13:30",
        "updatedBy": "john.smith@reltio.com",
        "updatedTime": "2024-10-10T10:15:30"
    },
    {
        "connectionId": "connId2",
        "parentId": "prtId2",
        "childId": "cldId2",
        "startDate": "2025-01-01",
        "endDate": "2027-12-32",
        "createdBy": "john.smith@reltio.com",
        "createdTime": "2024-10-10T10:13:30",
        "updatedBy": "john.smith@reltio.com",
        "updatedTime": "2024-10-10T10:15:30"
    }
]