Unify and manage your data

Bulk update hierarchy connections

Learn more about updating hierarchy connections in bulk.

Use the Bulk update hierarchy connections to create and delete connections within a specified hierarchy instance. The API processes all operations as a single change set, applying CREATE operations before DELETE operations, regardless of their order in the request.

If validation or preparation fails, the API rejects the entire request without saving any connection changes. This operation requires the MDM.Data.Hierarchy permission with the UPDATE privilege.

HTTP method and endpoint

Use the following HTTP method and endpoint path to update hierarchy connections in bulk.

PUT {platformUrl}/reltio/api/{tenantId}/hierarchies/{instanceId}/connections

Replace {platformUrl} with your Reltio platform base URL.

The following table describes the endpoint path parameters.

ParameterTypeRequiredDescription
tenantIdStringYesIdentifier of the tenant.
instanceIdStringYesIdentifier of the hierarchy instance to update.

Query parameters

The following table describes the query parameters and their values.

ParameterTypeRequiredDescriptionAccepted values / Default
optionsStringNoControls validation of the requested CREATE and DELETE operations against configured hierarchy rules.ignoreValidation skips configured structural rules. Validation is performed by default.

The ignoreValidation option does not bypass cycle prevention, date validation, endpoint and entity-type validation, or connectivity checks.

Request headers

The following request headers must be included.

HeaderValueRequired
AuthorizationBearer <access_token>Yes
Content-Typeapplication/jsonYes

Request body

The request body is a JSON array of connection operations. The following table describes the request body parameters.

ParameterTypeRequiredDescriptionAccepted values / Default
operationStringYesOperation to perform for the array item.CREATE or DELETE
parentObjectFor CREATE when using a crosswalkCrosswalk that identifies the parent entity.Do not specify with parentId.
parent.typeStringYes with parentSource type of the parent crosswalk.Example: configuration/sources/XYZ
parent.valueStringYes with parentValue of the parent crosswalk.Source-specific value
parent.sourceTableStringNoSource table of the parent crosswalk.Source-specific value
parentIdStringFor CREATE when using an entity IDEntity ID of the parent.Do not specify with parent.
childObjectFor CREATE when using a crosswalkCrosswalk that identifies the child entity.Do not specify with childId.
child.typeStringYes with childSource type of the child crosswalk.Example: configuration/sources/Reltio
child.valueStringYes with childValue of the child crosswalk.Source-specific value
child.sourceTableStringNoSource table of the child crosswalk.Source-specific value
childIdStringFor CREATE when using an entity IDEntity ID of the child.Do not specify with child.
startDateStringNoStart effective date of the connection.ISO 8601 date in YYYY-MM-DD format
endDateStringNoEnd effective date of the connection.ISO 8601 date in YYYY-MM-DD format
connectionIdStringFor DELETEIdentifier of the connection to remove. A missing connection causes the entire request to fail.Existing connection ID

For each CREATE operation, either the parent or child must already belong to the hierarchy being modified.

Example request

Use the following example to create one connection and delete another connection.

[
  {
    "operation": "CREATE",
    "parent": {
      "type": "configuration/sources/XYZ",
      "value": "I12345",
      "sourceTable": "USERS"
    },
    "child": {
      "type": "configuration/sources/Reltio",
      "value": "cldId"
    },
    "startDate": "2024-01-01"
  },
  {
    "operation": "DELETE",
    "connectionId": "CNTC_1"
  }
]

Response body

A successful request returns 200 OK. CREATE results appear first in their request order, followed by DELETE results in their request order.

FieldTypeDescription
statusStringOperation result: CREATED or DELETED.
connectionIdStringGenerated connection ID for CREATE, or removed connection ID for DELETE.
parentIdStringResolved parent entity ID for a CREATE result.
childIdStringResolved child entity ID for a CREATE result.
startDateStringStart effective date of the created connection, when specified.
endDateStringEnd effective date of the created connection, when specified.
createdByStringPerson who created the connection. Returned for a CREATE result.
createdTimeStringDate and time when the connection was created. Returned for a CREATE result.
updatedByStringPerson who last updated the connection. Returned for a CREATE result.
updatedTimeStringDate and time when the connection was last updated. Returned for a CREATE result.

Crosswalks in a CREATE request are resolved to entity IDs in the response. Results do not contain the operation field. A DELETE operation that disconnects part of a hierarchy turns the disconnected subtree into a separate hierarchy or hierarchy version.

Example response

The following example shows a successful response for one created connection and one deleted connection.

[
  {
    "status": "CREATED",
    "connectionId": "CNTC_2",
    "parentId": "prtId",
    "childId": "cldId",
    "startDate": "2024-01-01"
  },
  {
    "connectionId": "CNTC_1",
    "status": "DELETED"
  }
]