Add a Relationship to an Item
Use the following details to add a Relationship to an Item using the REST interface:
HTTP Method
POST
Endpoint URL
See the REST Service Endpoint topic for more details.
Resource
/restapi/v1/item/{id}/relationship
Request Parameters
Provide values for the following parameters:
Parameter Name | Data Type | Mandatory |
---|---|---|
id | string | Yes |
childId | string | Yes |
forwardType | string | Yes |
reverseType | string | Yes |
Request Model
Media Type: application/json
{ "childId": "string", "forwardType": "string", "id": "string", "reverseType": "string" }
Response Model
{ "result": { "code": { "severity": "Success", "message": "Success.", "code": "0000" }, "params": [], "message": "Success." }, "data": { "id": string, "childId": "string", "forwardType": "string", "reverseType": "string" }, "startTimestampMS": 1659699340465, "duration": 2 }