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

# Correct a contact

`PATCH /contacts/{id}`

## Request

- Base URL: `https://rcs-templates-api-dot-msg2ai-server.ue.r.appspot.com/api/agent`
- URL: `https://rcs-templates-api-dot-msg2ai-server.ue.r.appspot.com/api/agent/contacts/{id}`
- Auth: HTTP bearer

Correct a contact's names, email, merge fields (a whole-map replace) or tags. Consent and opt-out are deliberately out of reach here: recording or clearing them is compliance-sensitive and stays with a human operator.

## Path parameters

- `id` string, required

## Request body

- object
  - `firstName` string, nullable
  - `lastName` string, nullable
  - `email` string, nullable
  - `attributes` object, nullable: Whole-map replace of the {{merge field}} values.
  - `tags` string[]

## Response `200`

Success.

- object

## Other responses

- `400`: Arguments failed validation.
- `401`: Missing or invalid agent key.
- `403`: Key does not hold the contacts:write scope.
- `429`: Rate limited.

---

[API](https://skmtc.dev/wa-campaigns/apis/whatsapp-campaigns-agent-gateway.md) · [All operations](https://skmtc.dev/wa-campaigns/apis/whatsapp-campaigns-agent-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/wa-campaigns/apis/whatsapp-campaigns-agent-gateway/revisions/24503d56cc7b?raw)
