Peach icon

Peach

Interact with the Peach WhatsApp Platform API

Actions17

Contact → Bulk Update Preferences

AI-generated

Summary

Sets one communication preference on many Peach contacts at once by sending a comma-separated list of phone numbers to the Peach bulk-update endpoint.

Inputs

  • phoneNumbers (required) — Phone numbers to update, separated by commas. The value is split on "," with no trimming, so avoid spaces after commas. Include country codes.
  • communicationPreference — Preference applied to every listed contact: Allow Everything (default), Disallow Marketing, Disallow Automated Messaging, or Mute All.
  • requestOptions — Optional node setting for HTTP behavior: batching (items per batch, interval in ms), ignore SSL issues, proxy, and timeout (default 10000 ms).

Output shape

The JSON response from Peach's POST /api/v1/contacts/bulk_update_communication_preferences endpoint, returned as the node's output item(s).

The source doesn't define the response fields, so they depend on the Peach API. Authentication uses the peachApi credential, with a base URL of https://app.trypeach.ai. Each input item triggers its own request, so expressions can use per-item values.

Examples

Example 1: Mute a list of contacts that asked to stop all messages.

Phone Numbers: "+14155550101,+14155550102"; Communication Preference: Mute All.

Example 2: Stop marketing messages for contacts collected by an earlier node.

Phone Numbers: an expression that joins the earlier numbers with commas; Communication Preference: Disallow Marketing.

Links

Discussion