Create or clone a Campaign
POST/services/{serviceUuid}/campaigns
Create a new SMS campaign to be executed once on 1st of May, 2024 at 17:05 UTC timezone. Message content includes a contact variabled for a contact's first name. The messages will be sent to contacts from the defined list per recipient_lists.
Example:
curl -X 'POST' \
'https://api{separator}{platform_domain}/news/v1/services/5491ccd2-c1dc-11ee-8cde-63aaf4399859/campaigns' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"name": "New Campaign",
"status": "active",
"sending_type": "sms",
"schedule_type": "once",
"schedule_rrule": "2024-05-01 17:05:00",
"template": "Hello @first_name",
"sender": "+41587000000",
"recipient_lists": "cf9eeb30-c1af-11ee-8073-bf4d6e8c1618"
}'
Request
Responses
- 201
- 400
new Campaign response
Invalid request