Tasks
Manage Whatsapp Stubsession
Manage a Whatsapp stubsession for a specific number.
The manage_whatsapp_stubsession
task has the following operations:
set
delete
Allows managing the Whatsapp Stubsession for a specific number.
Basic usage
Delete a Whatsapp stubsession for a customer on the advanced_support
Whatsapp profile.
Parameters
required string
operation The operation to perform on the Whatsapp stubsession. The options are set
and delete
.
Default: null
required string or number
mobile_number The mobile number (cell phone number) for which to update the Whatsapp stubsession.
Default: null
optional string
stubref In the case of setting a Whatsapp stubsession, the stubref
refers to the stub to set as active in the stubsession.
Default: ~~stub.stubref
optional string
whatsapp_profile_name The Whatsapp profile for which to update the Whatsapp stubsession. This optional parameter is only required if the org has multiple Whatsapp profiles.
Default: null
Result
Properties
string
message A message on the result of the operation.
Examples
Setting a Whatsapp stubsession
Set a Whatsapp stubsession for the default Whatsapp profile.