post
https://{environment}.origamirisk.com/OrigamiApi/api/Link/Remove
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Overview
Removes an existing link association between a parent record and a child record. The link is permanently deleted. If no matching link exists for the specified parent/child pair, the endpoint returns a non-error response with IsSuccessful: false.
Record Identification
Parent and child records can be identified in two ways:
- By primary key (preferred): Provide
ParentRecordIDorChildRecordID. - By match field: Provide both a key value and a field name (e.g.,
ParentRecordKey=POL-2026-001+ParentRecordMatchField=PolicyNumber). Only text or numeric fields are accepted. Association fields are not allowed.
If both a primary key and a match field are provided for the same side, the primary key takes priority and the match field is ignored.
For Remove, you must identify one parent record AND one child record
Preconditions
- The authenticated user must have the appropriate permission on the parent domain (Detach Contacts for Contact links, Modify Files for File links, Edit for all others).
ChildDomainmust be"Contact"or"File".- Either
ParentRecordIDor bothParentRecordKeyandParentRecordMatchFieldmust be provided. - Either
ChildRecordIDor bothChildRecordKeyandChildRecordMatchFieldmust be provided.
Notes
- If the specified link does not exist, the response is
200 OKwithIsSuccessful: falseand a message indicating nothing was removed. This is not treated as an error. Relationshipis only applicable whenChildDomainisContact. Without it, any link between the specified parent and child is matched regardless of relationship. These fields are ignored for File links.
Examples
Scenario 1: Remove a contact link from a claim:
POST /api/Link/Remove
Content-Type: application/json{
"ParentDomain": "Claim",
"ParentRecordID": 5001,
"ChildDomain": "Contact",
"ChildRecordID": 2001,
"Relationship": "Adjuster"
}200 OK
{
"IsSuccessful": true,
"RecordID": 101,
"Message": "Deleted link with id 101 successfully.",
"ParentID": 5001,
"ChildID": 2001,
"RelationshipID": 3
}Scenario 2: Link does not exist:
POST /api/Link/Remove
Content-Type: application/json{
"ParentDomain": "Claim",
"ParentRecordID": 5001,
"ChildDomain": "Contact",
"ChildRecordID": 9999
}200 OK
{
"IsSuccessful": false,
"RecordID": 0,
"Message": "A link does not exist. Nothing to remove.",
"ParentID": 5001,
"ChildID": 9999,
"RelationshipID": null
}Scenario 3: Child domain is not a Contact or File:
POST /api/Link/Remove
Content-Type: application/json{
"ParentDomain": "Claim",
"ParentRecordID": 5001,
"ChildDomain": "Policy",
"ChildRecordID": 100
}500 Internal Server Error
"Unable to execute. Child Domain Policy is not supported as a linkable child type" 200