Assign Resource to WhatsApp number
Assigns an existing Resource as a WhatsApp number’s calling or messaging handler, so every inbound call or message to the number runs that Resource. Find the number’s ID with List WhatsApp numbers. A number that already has an Address for the chosen channel is re-pointed at the new Resource; an Address it holds for the other channel is removed, because a WhatsApp number holds one Address at a time. Calling also requires voice to be enabled on the number, as described in Enable voice on a WhatsApp number.
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Voice, Messaging, Fax, or Video.
Authentication
SignalWire Basic Authentication using Project ID and API Token.
The client sends HTTP requests with the Authorization header containing the word Basic followed by a space and a base64-encoded string of project_id:token. The project ID will be used as the username and the API token as the password.
Example:
Authorization: Basic base64(project_id:token)
Path parameters
Request
The SignalWire ID of the WhatsApp number, as returned by List WhatsApp numbers.
Whether the Resource handles the number's calling or messaging traffic.