Add a Relationship to an Item

Use the following details to add a Relationship to an Item using REST interface:

HTTP Method

POST

Endpoint URL

See the REST Service Endpoint topic for more details.

Resource

/item/{id}/relationship

Request Parameters

Provide values for the following parameters:

Parameter Name Data Type Mandatory
id string Yes
childId string No
forwardType string No
id string No
reverseType string No

Request Model

Media Type: application/json

{
  "childId": "string",
  "forwardType": "string",
  "id": "string",
  "reverseType": "string"
}

Response Model

{
  "data": {
    "childId": "string",
    "forwardType": "string",
    "id": "string",
    "reverseType": "string"
  },
  "duration": 0,
  "result": {
    "code": "string",
    "message": "string",
    "params": [
      "string"
    ]
  },
  "startTimestampMS": 0
}

Response Codes and Descriptions

Response Code Description
201 Created
401 Unauthorized
403 Forbidden
404 Not Found