Skip to content
PaalChat Docs

Update contact

.md
PATCH
https://whatsapp.paaltech.org/api/v1/businesses/{external_id}/contacts/{id}

Token ability: contacts.write ยท Authentication

Change a contact's details, custom fields (null clears one) or tags (replaced).

Path parameters

external_id string required

Your own ID for the business (Multi-SKUUL - the tenant ID).

Max 191 characters. Pattern ^[A-Za-z0-9._:-]+$.

id integer required

PaalChat's contact ID.

Body parameters

external_id string | null

Max 191 characters. Pattern ^[A-Za-z0-9._:-]+$.

phone string | null

International number, digits with optional +. Needed when there is no external_id.

name string | null

Max 191 characters.

email string | null

Format email.

locale string | null

Max 16 characters.

timezone string | null

IANA, e.g. Africa/Accra.

custom_fields object

Values for the business's fields; null clears one.

tags array of strings

Replaces the contact's tags.

Responses

200

The updated contact.

401

unauthenticated - missing, invalid, revoked or expired token

403

missing_ability, product_suspended or product_token_required

404

not_found - not yours, or does not exist

422

validation_failed - fields are invalid; see errors.

429

rate_limited - over 300 requests/minute for this product

Errors always look like {"error": {"code", "message"}} - see Errors and status codes.