---
title: "Update a contact"
method: PATCH
path: "/audiences/{id}/contacts/{contactId}"
tags: ["Contacts"]
---

# Update a contact

`PATCH /audiences/{id}/contacts/{contactId}`

## Request

- Base URL: `https://api.eusend.dev`
- URL: `https://api.eusend.dev/audiences/{id}/contacts/{contactId}`
- Auth: HTTP bearer

Change the name, or set `unsubscribed` to opt the contact in or out.

## Path parameters

- `id` string, uuid, required
- `contactId` string, uuid, required

## Request body

- UpdateContactRequest
  - `first_name` string
  - `last_name` string
  - `unsubscribed` boolean: Set true to opt the contact out, false to resubscribe.
  - `properties` object: Replaces the contact's custom properties. Omit to leave them unchanged; send `{}` to clear them.

## Response `200`

Updated.

- Contact
  - `id` string, uuid, required
  - `audienceId` string, uuid, required
  - `email` string, email, required
  - `firstName` string, nullable
  - `lastName` string, nullable
  - `properties` object: Custom properties, usable as `{{key}}` in a broadcast body.
  - `status` 'subscribed' | 'unsubscribed', required
  - `unsubscribedAt` string, date-time, nullable
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, nullable

## Other responses

- `400`: The request body or query failed validation (`VALIDATION_ERROR`).
- `401`: Missing, malformed, or revoked API key (`UNAUTHORIZED`).
- `403`: The key exists but may not reach this resource — a `sending_access` key outside the send paths, a test-mode key writing live state, or an account on hold (`FORBIDDEN`, `ACCOUNT_RESTRICTED`).
- `404`: No such resource on this organization (`NOT_FOUND`).
- `429`: Rate limit exceeded (`RATE_LIMITED`).
- `500`: Unexpected server error (`INTERNAL_ERROR`). Carries `request_id`.

---

[API](https://skmtc.dev/eusend/apis/eusend-api.md) · [All operations](https://skmtc.dev/eusend/apis/eusend-api/llms.txt) · [OpenAPI document](https://skmtc.dev/eusend/apis/eusend-api/revisions/bec561f55488?raw)
