Skip to main content
PATCH
/
orgs
/
{org_id}
/
contacts
/
{contact_id}
Update a Contact
curl --request PATCH \
  --url https://api.example.com/orgs/{org_id}/contacts/{contact_id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "blocked": true
}
'
{
  "id": "<string>",
  "name": "<string>",
  "blocked": true,
  "channels": [
    {
      "id": "<string>",
      "channel_type": "internal",
      "channel_id": "<string>",
      "channel_name": "<string>",
      "channel_display_name": "<string>",
      "channel_avatar": "<string>",
      "country": "<string>",
      "agent": "<string>",
      "ip": "<string>",
      "language": "<string>",
      "platform_data": {},
      "created_at": "2023-12-25",
      "updated_at": "2023-12-25",
      "link": "<string>"
    }
  ],
  "created_at": "2023-12-25",
  "updated_at": "2023-12-25"
}

Path Parameters

org_id
string
required

Org ID

contact_id
string
required

Contact ID

Body

Schema for updating a contact

name
string | null

Name of the contact

blocked
boolean

Whether the contact is blocked

Response

200 - application/json

Schema for the contact

id
string
required
name
string | null
required
blocked
boolean
required
channels
object[]
required
created_at
string<date>
required
updated_at
string<date>
required