Skip to main content
POST
/
api
/
v2
/
contact
/
{contact_id}
/
relationship
/
accounts
curl --request POST \
  --url https://api.example.com/api/v2/contact/{contact_id}/relationship/accounts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "related_record_id": "<target-uuid>"
}
'
{
  "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": {
        "role": {
          "value": "<string>",
          "value_type": "string"
        },
        "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

Body

application/json

POST body for /relationship/accounts — reference plus edge attributes.

role
string | null
is_primary
boolean | null

Response

Successful Response

parent
ParentRef · object
required

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

api_name
string
required
item
JunctionRelationshipItem[PublicV2ContactAccountRoleAttributes] · object
required