Creates a draft bulk text. The SMS text is a practice text template or inline text with Liquid tokens, not both. Who is texted at each client is chosen by contact type, on their mobiles. Clients are chosen as for a bulk email: a saved view or a client filter, plus additions and exclusions. Only SMS-only routing is accepted for now. Needs the practice's messaging set up (409 messaging_not_set_up otherwise).
Requires: Create on EmailBroadcasts and Create on Messaging.
Parameters
| Name | Type | Description |
|---|---|---|
| tenant* | path string | The Tenant.Code |
The Tenant.Code |
||
Request Body*
{
"savedViewCode": "string",
"filter": {
"managerCodes": [
"..."
],
"partnerCodes": [
"..."
],
"associateCodes": [
"..."
],
"statuses": [
"..."
],
"types": [
"..."
]
},
"excludedClientCodes": [
"string"
],
"additionalClientCodes": [
"string"
],
"recipientContactTypes": [
"Main"
],
"name": "string"
}
Responses
201 Created
400 Bad Request
401 Unauthorized – Invalid or missing API key
403 Forbidden – the caller lacks the permissions this endpoint requires; the detail lists every one missing
application/problem+json
409 Conflict