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

# Update a contact

`PUT /contacts/{contact}`

## Request

- Base URL: `https://there-there.app/api`
- URL: `https://there-there.app/api/contacts/{contact}`
- Auth: HTTP bearer

## Path parameters

- `contact` string, required

## Headers

- `X-Workspace-Id` integer

## Request body

- object
  - `email` string, email
  - `name` string, nullable
  - `notes` string, nullable
  - `company_ulid` string, nullable: ULID of the company to attach the contact to. Send null to detach it. A ULID from another workspace returns 404.

## Response `200`

Updated contact

- object
  - `data` Contact
    - `id` integer
    - `ulid` string
    - `name` string, nullable
    - `email` string, email
    - `avatar_url` string, nullable
    - `company` ContactCompany
      - `ulid` string
      - `name` string
      - `domain` string, nullable
    - `ticket_count` integer, nullable
    - `last_activity_at` string, date-time, nullable
    - `notes` string, nullable

---

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