API · Broadcasts
Update Broadcast
Edit a draft or canceled broadcast, or rename a broadcast in any other state (requires full access). Use the send endpoint to schedule delivery; send and scheduled_at fields are ignored here.
PATCH
/broadcasts/{id}Full accessRequest parameters
| Parameter | Type | Description |
|---|---|---|
idpath · required | string | Opaque resource id. |
namebody · optional | string | null | Broadcast name, up to 1000 characters. |
frombody · optional | string | null | Sender email address, up to 1000 characters. |
subjectbody · optional | string | null | Email subject, up to 998 characters. |
htmlbody · optional | string | null | HTML content, up to 256 KiB; provide nonempty HTML or text when creating the broadcast. |
textbody · optional | string | null | Plain text content, up to 256 KiB; provide nonempty text or HTML when creating the broadcast. |
preview_textbody · optional | string | null | Email preview text, up to 1000 characters. |
reply_tobody · optional | string | (string)[] | Up to 50 valid reply-to addresses, with the first address limited to 1000 characters. |
segment_idbody · optional | string | null | Recipient segment ID; null selects all contacts unless audience_id is supplied, and omission keeps the existing selection. |
audience_idbody · optional | string | null | Alternative recipient segment ID used when segment_id is null or omitted. |
topic_idbody · optional | string | null | Topic whose subscription preferences are checked before delivery. |
Request example
Set OPENSEND_BASE_URL=https://api.example.com and OPENSEND_API_KEY=os_replace_me on your server.
bash
curl -X PATCH "$OPENSEND_BASE_URL/broadcasts/YOUR_id" \
-H "Authorization: Bearer $OPENSEND_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"name":"September update"}'Response
200 · application/json. Example IDs stand for IDs returned by your installation.
json
{
"object": "broadcast",
"id": "YOUR_ID"
}Behavior and errors
Drafts and canceled campaigns can be edited. Other statuses only allow a name change. Use the send operation to change scheduling.
Use a full-access credential. Resource IDs belong to your team; an unknown or foreign resource returns 404. See authentication, errors, rate limits, and compatibility for the shared contract.