Skip to content

Remove relationship between record and Entity

DELETE https://api.copper.com/developer_api/v1/{{entity}}/{{entity_id}}/related

Removing the relationship does not cause any of the records involved to be deleted from the system.

Request body

{
  "resource": {
    "id": 2827700,
    "type": "opportunity"
  }
}

Example Requests

Remove relationship between person and opportunity

curl --location --request DELETE "https://api.copper.com/developer_api/v1/people/{{example_person_id}}/related" \
  --header "X-PW-AccessToken: YOUR_TOKEN_HERE" \
  --header "X-PW-Application: developer_api" \
  --header "X-PW-UserEmail: YOUR_EMAIL_HERE" \
  --header "Content-Type: application/json" \
  --data "{
    \"resource\": {
        \"id\": 2827700,
        \"type\": \"opportunity\"
    }
}"
{
  "removed": true,
  "resource": {
    "id": 2827700,
    "type": "opportunity"
  }
}