Skip to main content
PUT
Update a WhatsApp channel's history sync settings

Yetkilendirmeler

Authorization
string
header
gerekli

The access token received from the authorization server in the OAuth 2.0 flow.

Başlıklar

X-Tenant
number
gerekli

Tenant identifier. Send the Tenant ID in the X-Tenant header to scope API requests to a specific tenant.

Yol Parametreleri

id
integer
gerekli

The channel identifier

Gövde

application/json
enabled
boolean
gerekli

Whether the line copies its WhatsApp history when it is paired and the gap it missed whenever it comes back.

period_days
enum<integer>
gerekli

How many days of history the first sync copies. WhatsApp hands a linked device at most about a year.

Mevcut seçenekler:
30,
90,
365
contact_scope
enum<string>
gerekli

known copies only numbers the clinic already has (a patient, a lead or an earlier conversation on the line); all copies every chat.

Mevcut seçenekler:
known,
all
new_contact_type
enum<string>
gerekli

What an unknown number becomes when contact_scope is all. A lead falls back to a patient when the clinic has no active pipeline.

Mevcut seçenekler:
patient,
lead
name_strategy
enum<string>
gerekli

fill_blank fills only blank names of known contacts from their WhatsApp profile; keep leaves existing records untouched.

Mevcut seçenekler:
keep,
fill_blank
start_now
boolean

Start syncing right away when the line is connected, instead of waiting for its next connection.

Yanıt

success
boolean
gerekli
data
object
gerekli