Unify and manage your data

Create a hierarchy version

Learn more about how to use the Create hierarchy version to create a hierarchy version.

Use the Create hierarchy version to create a version for an existing hierarchy. You can also create the first hierarchy connection in the same request. 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/list/{hierarchyId}/versions

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. ignoreValidation skips structural validation. By default, validation is performed.

Request body

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

FieldTypeRequiredDescription
name—StringYesThe name of the version. It must be unique within the hierarchy.
status—StringNoThe status of the version.
effectiveStartDate—StringNoThe start effective date of the version in ISO 8601 date format.
effectiveEndDate—StringNoThe end effective date of the version in ISO 8601 date format.
description—StringNoThe description of the version.
context—StringNoAdditional context for the version.
firstConnection—ObjectYesThe object that describes the first hierarchy connection to create.
firstConnection.parentObjectYes The object that defines the parent in the first connection in the hierarchy.
Note: Do not pass both parentId and the parent crosswalk (type, value, and sourcetable) object for the same connection.
typeStringYes, when you use crosswalk for parent entityThe source type of the crosswalk that refers to the parent. Example:configuration/sources/XYZ
valueStringYes, when you use crosswalk for parent entityThe value of the crosswalk that refers to the parent. Example:I12345
sourceTableStringNoSource table of the crosswalk that refers to the parent. Example:Users
firstConnection.parentIDStringYes, when you use an entity ID for the parent.Entity ID of the parent. If you passparentId, the parent is created with the Reltio crosswalk. Either the parent or the child must be part of the hierarchy being modified. Example:0ABlXju
firstConnection.childObjectYes Object that defines the child in the first connection in the hierarchy.
Note: Do not pass both childId and the child crosswalk (type, value, and sourcetable) object for the same connection.
typeStringYes, when you use crosswalk for child entityThe source type of the crosswalk that refers to the child. Example: configuration/sources/XYZ
valueStringYes, when you use crosswalk for child entityThe value of the crosswalk that refers to the child. Example: I54321
sourceTableStringNoSource table of the crosswalk that refers to the child. Example:Users
firstConnection.childID—StringYes, when you use an entity ID for the child.Entity ID of the child. If you passchildId, the child is created with the Reltio crosswalk. Either the parent or the child must be part of the hierarchy being modified. Example:1XErCw7G
startDate—StringNoOptional. The start effective date of the connection in ISO 8601 date format.
endDate—StringNoOptional. The end effective date of the connection in ISO 8601 date format.

Example request

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

POST /list/prd/versions
Authorization: Bearer <token>

{
  "name": "Version 1",
  "status": "ACTIVE",
  "effectiveStartDate": "2024-01-01",
  "effectiveEndDate": "2026-12-31",
  "description": "longDescription",
  "context": "longContextDescription",
  "firstConnection": {
  "connectionId": "0ABmA6E",
  "parent": {
    "type": "configuration/sources/XYZ",
    "value": "I12345",
    "sourceTable": "USERS"
  },
  "child": {
    "type": "configuration/sources/Reltio",
    "value": "cldId"
  },
  "startDate": "2024-01-01",
  "endDate": "2026-12-32"
}

            
            

Response fields

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

FieldTypeDescription
instanceId—StringThe ID of the created hierarchy instance.
versionId—StringThe ID of the created version.
name—StringThe name of the version.
status—StringOptional. The status of the version.
effectiveStartDate—StringOptional. The start effective date of the version in ISO 8601 date format.
effectiveEndDate—StringOptional. The end effective date of the version in ISO 8601 date format.
description—StringOptional. The description of the version.
context—StringOptional. Additional context for the version.
firstConnection—ObjectOptional. The created first hierarchy connection. Repeats the request firstConnection and includes connectionId.
connectionIdStringThe ID of the created connection.
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.
createdBy—StringThe username of the user who created the version.
createdTime—StringThe time when the version was created, in ISO 8601 date-time format.
updatedBy—StringThe username of the user who last updated the version.
updatedTime—StringThe time when the version was last updated, in ISO 8601 date-time format.

Example response

The following example shows the response body.

{
  "instanceId": "0ABlc0A.0ABlgGQ",
  "versionId": "0ABlgGQ",
  "name": "Version 1",
  "status": "ACTIVE",
  "effectiveStartDate": "2024-01-01",
  "effectiveEndDate": "2026-12-31",
  "description": "longDescription",
  "context": "longContextDescription",
  "firstConnection": {
    "connectionId": "0ABmA6E",
    "parentId": "prtId",
    "childId": "cldId",
    "startDate": "2024-01-01",
    "endDate": "2026-12-31"
  },
  "createdBy": "email@reltio.com",
  "createdTime": "2025-04-01T13:30:00",
  "updatedBy": "email@reltio.com",
  "updatedTime": "2025-04-01T13:30:00"
}

The following table lists the possible error responses returned by this API.
HTTP statusDescriptionRecommended action
400 Bad RequestThe request contains invalid or missing parameters.Review the error message, correct the request as indicated, and submit the request again. For example, if the error identifies a duplicate version name, specify a unique name before resubmitting the request.