Skip to main content
PATCH
/
v3
/
orgs
/
{org_id}
/
customers
/
interactions
/
{customer_interaction_id}
/
relationships
/
representative
cURL
curl --request PATCH \
  --url https://api.ctrl-hub.com/v3/orgs/{org_id}/customers/interactions/{customer_interaction_id}/relationships/representative \
  --header 'Content-Type: application/vnd.api+json' \
  --header 'X-Session-Token: <api-key>' \
  --data '
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "type": "<string>"
  }
}
'
{
  "id": "98ca4a78-b66f-4234-9719-aaf832ee6669",
  "status": "400",
  "title": "A validation error was encountered",
  "source": {
    "parameter": "include"
  },
  "meta": {
    "resource": "wrong_value"
  }
}

Authorizations

X-Session-Token
string
header
required

Session token for authentication.

Path Parameters

org_id
string<uuid>
required

The unique identifier for the organisation.

customer_interaction_id
string<uuid>
required

The unique identifier for the customer interaction.

Body

application/vnd.api+json

The representative data to replace.

data
object
required

Represents a relationship to a user

Response

Replace existing relationship from the customer interaction to the representative.