Skip to main content
PUT
/
api
/
v1
/
contact
/
{contact_id}
Update Contact By Id
curl --request PUT \
  --url 'https://api.example.com/api/v1/contact/{contact_id}?api_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "first_name": "<string>",
  "last_name": "<string>",
  "email": "<string>",
  "channels": {},
  "user_attributes": {},
  "last_seen": "2023-11-07T05:31:56Z",
  "last_sent": "2023-11-07T05:31:56Z",
  "org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "first_assistant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "last_assistant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "first_widget_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "last_widget_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "custom_fields": {}
}
'
{
  "message": "Data updated successfully",
  "meta": {},
  "data": {
    "first_name": "<string>",
    "last_name": "<string>",
    "email": "<string>",
    "channels": {},
    "user_attributes": {},
    "last_seen": "2023-11-07T05:31:56Z",
    "last_sent": "2023-11-07T05:31:56Z",
    "org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "first_assistant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "last_assistant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "first_widget_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "last_widget_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "custom_fields": {}
  }
}

Authorizations

api_key
string
query
required

Your API key for authentication. You can generate it from the Settings page. Format: starts with in-.

Path Parameters

contact_id
string<uuid>
required

Body

application/json
first_name
string | null
last_name
string | null
email
string | null
channels
Channels · object
user_attributes
User Attributes · object
last_seen
string<date-time> | null
last_sent
string<date-time> | null
org_id
string<uuid> | null
first_assistant_id
string<uuid> | null
last_assistant_id
string<uuid> | null
first_widget_id
string<uuid> | null
last_widget_id
string<uuid> | null
custom_fields
Custom Fields · object

Response

Successful Response

message
string | null
default:Data updated successfully
meta
Meta · object
data
IContactUpdate · object