Skip to main content
PATCH
/
api
/
v2
/
contact
/
{contact_id}
/
relationship
/
opportunities
/
{target_id}
Update a contact↔opportunity relationship edge
curl --request PATCH \
  --url https://api.example.com/api/v2/contact/{contact_id}/relationship/opportunities/{target_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "through": {
    "role_name": "champion"
  }
}
'
{
  "parent": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "record_type": "<string>"
  },
  "api_name": "<string>",
  "item": {
    "related_record_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "related_record_type": "<string>",
    "through": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "record_type": "<string>",
      "attributes": {
        "is_primary": {
          "value": true,
          "value_type": "boolean"
        }
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Reevo API key passed as Authorization: Bearer <api-key>.

Path Parameters

contact_id
string<uuid>
required
target_id
string<uuid>
required

Body

application/json

PATCH body for /relationship/opportunities/{target_id} — is_primary only.

is_primary distinguishes absent (UNSET → untouched) from a value.

is_primary
boolean

Response

Successful Response

parent
ParentRef · object
required

Reference back to the parent record on a sub-resource response.

api_name
string
required
item
JunctionRelationshipItem[ContactOpportunityRoleAttributes] · object
required