Remove Link between Parent and Child Record

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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:

  1. By primary key (preferred): Provide ParentRecordID or ChildRecordID.
  2. 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).
  • ChildDomain must be "Contact" or "File".
  • Either ParentRecordID or both ParentRecordKey and ParentRecordMatchField must be provided.
  • Either ChildRecordID or both ChildRecordKey and ChildRecordMatchField must be provided.

Notes

  • If the specified link does not exist, the response is 200 OK with IsSuccessful: false and a message indicating nothing was removed. This is not treated as an error.
  • Relationship is only applicable when ChildDomain is Contact. 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"

Body Params
json
required
Defaults to { "ParentDomain": "string", "ParentRecordID": 0, "ParentRecordKey": "string", "ParentRecordMatchField": "string", "ChildDomain": "string", "ChildRecordID": 0, "ChildRecordKey": "string", "ChildRecordMatchField": "string", "Relationship": "string" }

Utilizes the same matching logic as the Upsert endpoint to identify and delete the link relationship between records of two different Domains.

string

The parent domain name. Case-sensitive.

integer

Primary key of the parent record. Required if ParentRecordKey/ParentRecordMatchField are not provided.

string

The field on the ParentDomain record that will be searched for the ParentRecordKey value you provide. Only text or numeric fields accepted.

string

The value to match against ParentRecordMatchField. Must uniquely identify one parent record. Must be used with ParentRecordMatchField.

string
enum

Values: "Contact", "File". The domain of the child record to unlink.

Allowed:
integer

Primary key of the child record. Required if ChildRecordKey/ChildRecordMatchField are not provided.

string

The field on the ChildDomain record that will be searched for the ChildRecordKey value you provide. Only text or numeric fields accepted.

string

The value to match against ChildRecordMatchField. Must uniquely identify one child record. Must be used with ChildRecordMatchField.

string

Only applicable when ChildDomain is Contact. Narrows the match to a specific relationship type.
You can retrieve valid Relationship values from GET /api/Link/Codes?fieldName=ContactType.

Response
200
Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here!