Skip to main content
PATCH
/
v1
/
audiences
/
{audienceId}
/
contacts
/
{id}
Update Contact
curl --request PATCH \
  --url https://api.example.com/v1/audiences/{audienceId}/contacts/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "first_name": "<string>",
  "last_name": "<string>",
  "unsubscribed": true
}
'
audienceId
string
required
The ID of the audience.
id
string
required
The ID of the contact.
first_name
string
The contact’s first name.
last_name
string
The contact’s last name.
unsubscribed
boolean
Whether the contact is unsubscribed.

Request

cURL
curl -X PATCH https://www.unosend.co/api/v1/audiences/aud_123/contacts/con_123 \
  -H "Authorization: Bearer un_xxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "first_name": "Jonathan",
    "unsubscribed": false
  }'

Response

200
{
  "id": "con_123",
  "email": "[email protected]",
  "first_name": "Jonathan",
  "last_name": "Doe",
  "unsubscribed": false
}