Skip to main content
flag
Mon - Fri   10:00 – 18:00

Update Contact

API Documentation / WhatsApp / Update Contact

Base URL for your account: https://cpaas.studio

PUT POST /api/whatsapp/v1/contacts/{phone}

Change the name and attributes (merge=true merges attributes instead of replacing them). The phone and the consent record cannot change.

Parameters

Param Type Required Notes
name string no
attributes object no
merge boolean no

Request example

curl -X PUT "https://cpaas.studio/api/whatsapp/v1/contacts/+919876543210" \
  -H "X-API-KEY: cpk_xxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"attributes":{"plan":"gold"},"merge":true}'

Success response (data)

{
    "contact": {
        "phone": "+919876543210",
        "channel": "WCH54DZ7M7M5V",
        "username": null,
        "name": "Asha",
        "profile_name": "Asha K",
        "attributes": {
            "city": "Kochi"
        },
        "optout": null,
        "inactive": false,
        "consent_source": "website_form",
        "consent_at": "2026-10-09T10:00:00+00:00",
        "created_via": "api",
        "created_at": "2026-10-09T10:00:00+00:00"
    }
}

Need more context? See Getting started for authentication, the response envelope, and the full error-code reference.