> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Contact

> Update a contact's email, name, subscription status, or custom properties.

Update an existing contact profile within your workspace via the Mailofly API.

### Path Parameters

**id** `string` *required*

The unique identifier of the contact.

### Body Parameters

**email** `string`

New email address for the contact.

**firstName** `string`

First name.

**lastName** `string`

Last name.

**unsubscribed** `boolean`

Set whether the contact is globally unsubscribed.

**properties** `object`

Key-value custom attributes for personalization.

### Response

**data** `object`

**id** `string`

The contact ID.

**email** `string`

Contact email.

**unsubscribed** `boolean`

Unsubscribe status.

```bash cURL theme={null}
curl -X PATCH https://api.mailofly.com/contacts/cnt_123 \
  -H "Authorization: Bearer mf_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "firstName": "Alex",
    "properties": {
      "plan": "enterprise"
    }
  }'
```

```json 200 OK theme={null}
{
  "data": {
    "id": "cnt_123",
    "email": "alex@example.com",
    "firstName": "Alex",
    "unsubscribed": false,
    "properties": {
      "plan": "enterprise"
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.