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

# Update a contact

`PATCH /contacts/{id}`

Updates the specified contact by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

## Path parameters

- `id` string, required — The ID of the contact to update.

## Request body

- ContactParams — Parameters for creating a contact
  - `email` string, email — The contact's email address.
  - `first_name` string — The contact's first name.
  - `last_name` string — The contact's last name.
  - `metadata` Metadata — Set of key-value pairs that will be stored with the object.
  - `phone_number` string, phone-number, required — The contact's phone number in E.164 format.

## Response `200`

Updated contact

- Contact — A contact who has consented to receive messages
  - `email` string, email — The contact's email address.
  - `first_name` string — The contact's first name.
  - `id` string, required — Unique identifier for the object.
  - `last_name` string — The contact's last name.
  - `metadata` Metadata — Set of key-value pairs that will be stored with the object.
  - `phone_number` string, phone-number, required — The contact's phone number in E.164 format.

## Other responses

- `default` — Error

---

[API](https://skmtc.net/surgeapi/apis/surge.md) · [All operations](https://skmtc.net/surgeapi/apis/surge/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/surgeapi/surge/versions/b5b0b6f62245/schema)
