---
title: "Update contact"
method: PATCH
path: "/contacts/{contact_id}"
tags: ["Contacts"]
---

# Update contact

`PATCH /contacts/{contact_id}`

Partially update a specific contact by ID. Supports custom field auto-creation and null semantics.

## Path parameters

- `contact_id` string, uuid, required

## Request body

- object
  - `first_name` string — Contact's first name (optional)
  - `last_name` string — Contact's last name (optional)
  - `email` string, email — Contact's email address (optional)
  - `phone_number` string — Contact's phone number in E.164 format (optional)
  - `address` string — Contact's address (optional)
  - `custom_fields` object, nullable — Custom fields as key-value pairs. Unknown fields are auto-created with type inferred from the value (string, number, boolean, email, phone, url, date). Set to null to remove ALL custom field values. Set a field's value to null to remove that specific field value. Omit the key entirely to leave custom fields unchanged.

## Response `200`

Contact updated successfully

- object
  - `ok` boolean
  - `data` object
    - `id` string, uuid
    - `first_name` string
    - `last_name` string
    - `email` string, email
    - `phone_number` string
    - `address` string
    - `last_call_time` string, date-time

## Other responses

- `400` — Invalid request data
- `401` — Invalid or missing API key
- `403` — Insufficient permissions
- `404` — Resource not found

---

[API](https://skmtc.net/yourang/apis/yourang-ai-external-api-v1.md) · [All operations](https://skmtc.net/yourang/apis/yourang-ai-external-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/yourang/yourang-ai-external-api-v1/revisions/49680ee64400/schema)
