Skip to main content
PATCH
Update number (privacy + settings)

Authorizations

x-api-key
string
header
required

Your ps_ API key

Path Parameters

id
string
required

WhatsApp number id.

Body

application/json
piiMode
enum<string>

Conversation retention policy. Optional — omit it to change only settings.

Available options:
STORE_INDEFINITE,
STORE_X_DAYS,
RELAY_ONLY
Example:

"STORE_X_DAYS"

piiRetentionDays
integer | null

Required (1–3650) when piiMode is STORE_X_DAYS; forced to null otherwise.

Required range: 1 <= x <= 3650
Example:

30

settings
object

Per-number settings. Partial: only the keys you send change.

Response

Updated number