Update a broadcast
Updates an existing Broadcast draft. Scheduled, running, completed, and failed Broadcasts cannot be changed here. Before changing a scheduled Broadcast, read it by ID and retain its scheduled_at in the current task only. If the saved time is no longer safely in the future, ask the user for a new time before unscheduling. Otherwise unschedule it, apply the update, reschedule it for the same time, and verify both status and scheduled_at. If the update fails after unscheduling, restore the unchanged Broadcast to the same future time when possible. If the schedule cannot be restored, leave it as a Draft and immediately report that it will not send; never choose a replacement time without the user.
Request
- Base URL: https://api.mailrith.com
- URL: https://api.mailrith.com/v1/broadcasts/{broadcast_id}
- Auth: HTTP bearer
Path parameters
The broadcast identifier.
Request body
Example request
{
"audience_definition": {
"match": "all",
"groups": [
{
"id": "active-subscribers",
"match": "all",
"conditions": [
{
"id": "active-status",
"field": "subscriber_status",
"operator": "is",
"value": [
"Active"
]
}
]
}
]
}
}Response
Successful response
Example response
{
"data": {
"audience_definition": {
"match": "all",
"groups": [
{
"id": "active-subscribers",
"match": "all",
"conditions": [
{
"id": "active-status",
"field": "subscriber_status",
"operator": "is",
"value": [
"Active"
]
}
]
}
]
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.