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

# Update Contact

> Update a contact

## Overview

The Update Contact endpoint lets you modify an existing contact's details. Only include the fields you want to change. Pass `null` for optional fields to clear them.

<Note>
  **Scope required:** `contacts:write` | **Rate limit:** 20 requests/min
</Note>

## Request

```bash theme={null}
PATCH /v1/contacts/{id}
```

### Body Parameters

All fields are optional, but at least one must be provided.

<ParamField body="firstName" type="string">
  First name (max 100 characters)
</ParamField>

<ParamField body="lastName" type="string">
  Last name (max 100 characters)
</ParamField>

<ParamField body="jobTitle" type="string | null">
  Contact's job title (max 200 characters, null to clear)
</ParamField>

<ParamField body="company" type="string | null">
  Company name (max 200 characters, null to clear)
</ParamField>

<ParamField body="relationship" type="string | null">
  Relationship type (see Create Contact for values, null to clear)
</ParamField>

<ParamField body="email" type="string | null">
  Email address (max 200 characters, null to clear)
</ParamField>

<ParamField body="phone" type="string | null">
  Phone number (max 50 characters, null to clear)
</ParamField>

<ParamField body="linkedIn" type="string | null">
  LinkedIn profile URL (max 500 characters, null to clear)
</ParamField>

### Example

```bash theme={null}
curl -X PATCH "https://api.mokaru.ai/v1/contacts/clx1234" \
  -H "Authorization: Bearer mk_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "phone": "+1 555-0201",
    "relationship": "TEAM_LEAD"
  }'
```

## Response

<ResponseField name="success" type="boolean">Whether the contact was updated</ResponseField>
<ResponseField name="id" type="string">The contact's ID</ResponseField>

```json theme={null}
{
  "success": true,
  "id": "clx1234..."
}
```
