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

# Update a contact

`PATCH /contacts/{contactId}`

Updates the given fields of a contact. Omitted fields are left untouched; sending `null` clears the field.

Tags are linked by `id` or `name` and must already exist in the workspace — unknown tags are ignored. Use `PATCH /contacts/{contactId}/tags` to create tags on demand.

## Path parameters

- `contactId` string, uuid, required

## Request body

- object
  - `firstName` string, nullable
  - `lastName` string, nullable
  - `email` string, nullable
  - `phone` string, nullable
  - `occupation` string, nullable
  - `gender` string, nullable
  - `birthdate` string, nullable
  - `age` number, nullable
  - `notes` string, nullable
  - `tags` object — Only tags that already exist in the workspace are linked
    - `add` object[] — Tags to link to the contact, keeping the current ones
      - `id` string — Id of an existing tag
      - `name` string — Name of an existing tag
    - `remove` object[] — Tags to unlink from the contact
      - `id` string — Id of an existing tag
      - `name` string — Name of an existing tag
    - `set` object[] — Replaces all tags of the contact. When provided, `add` and `remove` are ignored
      - `id` string — Id of an existing tag
      - `name` string — Name of an existing tag
  - `customProperties` object — Values for the custom contact properties of the workspace, keyed by property name

## Response `204`

Contact updated successfully

## Other responses

- `400` — Bad request, invalid input data
- `401` — Unauthorized
- `404` — Contact not found

---

[API](https://skmtc.net/indigohive/apis/cogfy-messenger-public-api.md) · [All operations](https://skmtc.net/indigohive/apis/cogfy-messenger-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/indigohive/cogfy-messenger-public-api/versions/30bd33ee45c9/schema)
