Properties
| Name | Type | Description |
|---|---|---|
| savedViewCode | string | The code of a saved client view whose filter selects which clients to include. The view's criteria are resolved |
The code of a saved client view whose filter selects which clients to include. The view's criteria are resolved | ||
| filter | EmailBroadcastFilterDto | |
| excludedClientCodes | array of string | Client codes to exclude from the filter results |
Client codes to exclude from the filter results | ||
| additionalClientCodes | array of string | Hand-picked client codes to add on top of the filter results |
Hand-picked client codes to add on top of the filter results | ||
| recipientContactTypes | array of enum | The client contact types texted at each client, on their mobiles. A draft needs at least one; a summary with none |
The client contact types texted at each client, on their mobiles. A draft needs at least one; a summary with none | ||
| sendOncePerNumber | boolean | When true (the default), a number held by contacts at several clients is texted once, with the first client's |
When true (the default), a number held by contacts at several clients is texted once, with the first client's | ||
| name* | string | What the bulk text is called in the list, the client notes and Messages |
What the bulk text is called in the list, the client notes and Messages | ||
| routing | enum | SmsOnly KnownNumbers TryWhatsAppFirst |
SmsOnly KnownNumbers TryWhatsAppFirst | ||
| templateCode | string | The practice text template whose body is the SMS text. Mutually exclusive with Body. |
The practice text template whose body is the SMS text. Mutually exclusive with Body. | ||
| body | string | The SMS text with Liquid tokens ({{ Client.Name }}, {{ Contact.FirstName }}, {{ Practice.Name }}, {{ Url }} …), |
The SMS text with Liquid tokens ({{ Client.Name }}, {{ Contact.FirstName }}, {{ Practice.Name }}, {{ Url }} …), | ||
| whatsAppTemplateId | string | The approved WhatsApp template sent where the routing chooses WhatsApp: required with KnownNumbers or |
The approved WhatsApp template sent where the routing chooses WhatsApp: required with KnownNumbers or | ||
| contentVariables | object | What fills each of the WhatsApp template's placeholders, by placeholder ("1", "2"…): a token expression such as |
What fills each of the WhatsApp template's placeholders, by placeholder ("1", "2"…): a token expression such as | ||
JSON Example
{
"savedViewCode": "string",
"filter": {
"managerCodes": [
"..."
],
"partnerCodes": [
"..."
],
"associateCodes": [
"..."
],
"statuses": [
"..."
],
"types": [
"..."
]
},
"excludedClientCodes": [
"string"
],
"additionalClientCodes": [
"string"
],
"recipientContactTypes": [
"Main"
],
"name": "string"
}