Skip to main content
PATCH
/
orgs
/
{org_id}
/
contacts
/
{contact_id}
/
channels
/
{channel_id}
Update a contact channel (only for custom channels)
curl --request PATCH \
  --url https://api.useinvent.com/orgs/{org_id}/contacts/{contact_id}/channels/{channel_id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "avatar": "<string>",
  "name": "<string>",
  "phone": "<string>",
  "username": "<string>",
  "email": "[email protected]"
}
'
{
  "id": "<string>",
  "type": "internal",
  "user_id": "<string>",
  "avatar": "<string>",
  "name": "<string>",
  "username": "<string>",
  "email": "<string>",
  "phone": "<string>",
  "country": "<string>",
  "agent": "<string>",
  "ip": "<string>",
  "language": "<string>",
  "platform_data": {},
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "link": "<string>"
}

Path Parameters

org_id
string
required

Org ID

contact_id
string
required

Contact ID

channel_id
string
required

Channel ID

Body

Schema for updating a contact channel

avatar
string<uri> | null

The avatar for the contact channel, e.g X Avatar URL

Maximum string length: 2048
name
string | null

The name for the contact channel, e.g Full Name

Maximum string length: 256
phone
string | null

The phone number for the contact channel, e.g Phone Number

Maximum string length: 256
username
string | null

The username for the contact channel, e.g Username

Maximum string length: 256
email
string<email> | null

The email for the contact channel, e.g Email

Maximum string length: 256

Response

200 - application/json

Schema for the contact channel

id
string
required
type
enum<string>
required

ID of the connection integration

Available options:
internal,
custom,
whatsapp_bot,
messenger_bot,
instagram_dm,
twilio,
telnyx,
slack_bot,
telegram_bot,
gmail,
google_calendar
user_id
string
required

The unique identifier for the contact channel, e.g Phone Number or User ID

avatar
string | null
required

The avatar for the contact channel, e.g X Avatar URL

name
string | null
required

The name for the contact channel, e.g Full Name

username
string | null
required

The username for the contact channel, e.g Username

email
string | null
required

The email for the contact channel, e.g Email

phone
string | null
required

The phone number for the contact channel, e.g Phone Number

country
string | null
required

The country code associated with the contact channel, e.g US for United States

agent
string | null
required

The user agent associated with the contact channel

ip
string | null
required

The IP address associated with the contact channel

language
string | null
required

The language code associated with the contact channel, e.g en for English

platform_data
object
required

Schema for the platform-specific data of a contact channel

created_at
string<date-time>
required
updated_at
string<date-time>
required

A link to the contact channel, e.g a link to the social media profile