Update an account
update_accountChange a WhatsApp account's settings: rename it, auto-reject calls, enable anti-ban pacing, import recent chats, auto-download media, set image quality, or move its proxy location.
Instructions
Change an account's settings: rename it, reject incoming calls automatically, turn on and tune its pacing (the anti-ban protections, off by default), choose whether the next link imports recent chats, choose which received media is downloaded right away (the rest on demand), choose the quality its images are sent at, or move its proxy location. Pacing applies from the next send. A proxy location change gives the number a new exit IP and reconnects it; it is refused within 10 minutes of the previous change. Returns the updated account with its pacing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | A name for the account, such as `Front desk`. | |
| pacing | No | Anti-ban pacing, merged over the stored values: omitted fields keep theirs, null resets the whole pacing to the defaults (every protection off). Recommended for bulk, cold or marketing sends: `{"messagesPerMinute": 12, "firstContactPerMinute": 5, "typing": {"enabled": true}}`. | |
| accountId | Yes | The wuapi account id of the linked number to act as (from list_accounts). | |
| historySync | No | `recent` imports the chats the phone sends at the next link. A number that is already linked gets no new history. | |
| rejectCalls | No | Reject incoming calls automatically. | |
| imageQuality | No | What the account's images are re-encoded to before their upload through the number's proxy (proxy traffic). `standard` (default): longest side 1600 px, JPEG, as WhatsApp sends a photo. `hd`: up to 4096 px. `original`: the file as it is. | |
| proxyLocation | No | Move the number (`country` and `city` together), switch whether its city is exact (`strictCity`), or both. The session reconnects on a new exit IP. | |
| mediaAutoDownload | No | Which received media is downloaded right away through the number's proxy (proxy traffic). `none` (default for new accounts): on demand, when its media URL is first requested. `all`: every file. `{maxBytes, types}`: only those. | |
| rejectCallsMessage | No | Text sent to the caller after an automatic reject (not for group calls). |