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

# Update a contact

`PATCH /{account}/contacts/{contact}`

Updates the contact details.

## Path parameters

- `account` integer, required
- `contact` integer, required

## Request body

- object
  - `label` string
  - `first_name` string
  - `last_name` string
  - `address1` string
  - `address2` string, nullable
  - `city` string
  - `state_province` string
  - `postal_code` string
  - `country` string
  - `email` string
  - `phone` string
  - `fax` string, nullable
  - `organization_name` string — The company name. If the organization_name is specified, then you must also include job_title.
  - `job_title` string — The contact's job title. Required if the organization_name is specified.

## Response `200`

Successfully updated contact.

- object
  - `data` Contact
    - `id` integer
    - `account_id` integer
    - `label` string
    - `first_name` string
    - `last_name` string
    - `organization_name` string
    - `job_title` string
    - `address1` string
    - `address2` string
    - `city` string
    - `state_province` string
    - `postal_code` string — The ISO 3166-1 alpha-2 country code, upper case (eg. DE).
    - `country` string
    - `phone` string
    - `fax` string
    - `email` string
    - `created_at` string, date-time — A date-time value formatted as ISO 8601.
    - `updated_at` string, date-time — A date-time value formatted as ISO 8601.

## Other responses

- `400` — A required parameter is missing or the request is invalid.
- `404` — The requested resource doesn't exist.

## Changes

- **2023-07-18** (v2) `c8591dcf8c29` — 22 breaking, 2 info
  - the response property `data` became optional for the status `200`
  - the response property `data/account_id` became optional for the status `200`
  - the response property `data/address1` became optional for the status `200`
  - the response property `data/address2` became optional for the status `200`
  - …20 more

[Change history](https://skmtc.dev/dnsimple/apis/dnsimple-api/changes/:account/contacts/:contact/patch.md)

---

[API](https://skmtc.dev/dnsimple/apis/dnsimple-api.md) · [All operations](https://skmtc.dev/dnsimple/apis/dnsimple-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dnsimple/dnsimple-api/revisions/2e2a96fa71fe/schema)
