# Change a broadcast draft

```http
PATCH https://trydimmi.com/api/v1/broadcasts/{broadcast}
```

## Authorization

Send an API token as `Authorization: Bearer <token>`.
The token needs: `broadcasts:write`.

## Path parameters

- `broadcast` (string, required): Id of the broadcast, starting with bcst_, such as bcst_01jx2m8k4t. Find it with GET /broadcasts.

## Body

- `ai_replies` (boolean): true lets the AI agent answer replies.
- `audience_id` (string): Saved audience (audn_...) that gets it. Find it with GET /audiences.
- `body` (string): The message in Markdown, up to 50000 characters.
- `email_address_id` (string): Sending email address (ema_...). Find it with GET /email-addresses.
- `goal` (any): What it hopes people do: {"event": event name, "days": days after getting it}. Find events with GET /event-definitions.
- `holds` (string[]): List of who to leave out of a conversation broadcast, replacing the old list; only allowed on a draft whose channel is conversation. Values: customer_waiting (customers still waiting on an answer) and team_replied (for a tracker, customers a teammate already answered). Such as ["customer_waiting"]. One of: `customer_waiting`, `team_replied`.
- `name` (string): The name of the broadcast, at most 120 characters.
- `preview` (string): Email preview text, up to 200 characters.
- `reply_agent_id` (string): The AI agent (aia_...) that answers replies when ai_replies is true; empty leaves it to the agent placed on the channel.
- `reply_member_id` (string): Teammate (mem_...) who gets the replies.
- `reply_team_id` (string): Team (team_...) that gets the replies.
- `room_ids` (string[] | null): For slack: the Slack channels (chr_...) to post in. Find them with GET /channels/{channel}/rooms.
- `rules` (any): The audience as JSON: {"visitors": everyone, identified, leads, anonymous or anonymous_and_leads, "rules": a tree of all, any and not groups over leaves {field, op, value}}. Fields come from GET /audience-fields, such as contact.custom.plan or event.signed_up.count. Four levels, 50 leaves, 8 KB at most. Used instead of a saved audience.
- `schedule` (object)
  - `at` (string): When the broadcast goes out, as an ISO 8601 time in the future, such as 2027-01-15T09:00:00Z. Needed when kind is at or local; leave out when kind is now.
  - `kind` (string, required): When the broadcast goes out: now sends right away, at sends at the time in at, local sends at that clock time in each person's own time zone. One of: `now`, `at`, `local`.
- `sender_id` (string): Teammate (mem_...) it comes from. Find it with GET /members.
- `service` (boolean): true marks a service notice, such as an outage, that reaches people who left the marketing topics. Never use it for marketing.
- `skip_frequency_cap` (boolean): true sends even to people who got the most messages the workspace allows lately.
- `slack_as` (string): For slack: bot posts as the dimmi app, member as the sender's own Slack account. One of: `bot`, `member`.
- `subject` (string): Email subject, up to 200 characters.
- `topic_id` (string): Topic (bctp_...) it is sent under; people who left the topic do not get it. Find it with GET /broadcast-topics.
- `track_clicks` (boolean): true counts who clicks the links.

## Response 200 (OK)

- `data` (object, required)
  - `ai_replies` (boolean, required): Whether the AI agent may answer replies to this broadcast.
  - `audience_id` (string | null, required): Id of the saved audience the broadcast goes to, such as audn_... Null when it uses its own rules or hand-picked Slack channels.
  - `body` (string, required): The message's text, up to 50000 characters.
  - `channel` (string, required): How the broadcast goes out: email, chat or post (both in the messenger; a post shows as a card), slack, or conversation (inside each person's existing conversation).
  - `counts` (any, required): The latest tally of recipients as an object: total, queued, sent, delivered, opened, clicked, replied, reactions, unsubscribed, converted, failed, bounced, skipped and more. Empty before sending.
  - `created_at` (string, required): When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
  - `email_address_id` (string | null, required): Id of the connected email address the broadcast is sent from, such as ema_... Null when none is chosen.
  - `finished_at` (string | null, required): When sending finished. Null until then.
  - `goal` (any, required): What the broadcast hopes recipients do: an object with event (an event they send) and days (within how many days). Null when no goal is set.
  - `holds` (string[] | null, required): Who a conversation broadcast leaves out: customer_waiting (still waiting on an answer), team_replied (already answered since the tracker moved). Empty for none.
  - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
  - `name` (string, required): The team's name for the broadcast, 1 to 120 characters. Recipients do not see it.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `pause_reason` (string | null, required): Why sending was paused by itself: bounce_rate or complaint_rate. Null when not paused for such a reason.
  - `preview` (string, required): The preview line an email shows after its subject, up to 200 characters. Empty when none.
  - `reply_agent_id` (string | null, required): The AI agent that answers replies when ai_replies is true, such as aia_.... Null leaves it to the agent placed on the channel the reply comes in on.
  - `reply_member_id` (string | null, required): Id of the teammate replies are assigned to, such as mem_... Null when none is set.
  - `reply_team_id` (string | null, required): Id of the team replies are assigned to, such as team_... Null when none is set.
  - `room_ids` (string[] | null, required): Ids of the Slack channels picked by hand to receive the broadcast, such as chr_... Empty when none.
  - `rules` (any, required): The audience rule used when no saved audience is named, in the same shape as a saved audience's rules. Null when none.
  - `schedule_kind` (string, required): When it sends: now, at (at scheduled_at) or local (at scheduled_at's clock time in each person's own time zone).
  - `scheduled_at` (string | null, required): The time the broadcast is set to send. Null when schedule_kind is now.
  - `sender_id` (string | null, required): Id of the teammate the broadcast is sent as, such as mem_... Null when none is chosen.
  - `service` (boolean, required): True for a service message, which also reaches people who unsubscribed or left the topic and ignores the frequency cap.
  - `skip_frequency_cap` (boolean, required): True when the broadcast goes out even to people who recently got another one.
  - `slack_as` (string, required): Who a Slack broadcast posts as: bot or member (the sender).
  - `started_at` (string | null, required): When sending started. Null until then.
  - `status` (string, required): Where the broadcast stands: draft, scheduled, sending, paused, sent or stopped.
  - `subject` (string, required): The subject line of an email, or the heading of a post. Up to 200 characters; empty when none.
  - `ticket_id` (string | null, required): Id of the ticket a conversation broadcast was started from, such as tkt_...; it reaches only conversations linked to it. Null otherwise.
  - `topic_id` (string | null, required): Id of the topic the broadcast is sent under, such as bctp_...; only people subscribed to it get it. Null when it has no topic.
  - `track_clicks` (boolean, required): Whether clicks on the message's links are counted. On by default.
  - `updated_at` (string, required): When it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

## Response default (Error)

- `code` (string, required): Stable code for programs to tell errors apart, such as validation_failed or internal_error.
- `errors` (object): Each rejected field mapped to its messages. Only present when the input was invalid.
- `message` (string, required): What went wrong, in words safe to show a person.

## Example request

```bash
curl --request PATCH \
  --url 'https://trydimmi.com/api/v1/broadcasts/{broadcast}' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "ai_replies": true,
  "audience_id": "<string>",
  "body": "<string>",
  "email_address_id": "<string>",
  "goal": null,
  "holds": [
    "customer_waiting"
  ],
  "name": "<string>",
  "preview": "<string>",
  "reply_agent_id": "<string>",
  "reply_member_id": "<string>",
  "reply_team_id": "<string>",
  "room_ids": [
    "<string>"
  ],
  "rules": null,
  "schedule": {
    "at": "2026-11-01T09:30:00Z",
    "kind": "now"
  },
  "sender_id": "<string>",
  "service": true,
  "skip_frequency_cap": true,
  "slack_as": "bot",
  "subject": "<string>",
  "topic_id": "<string>",
  "track_clicks": true
}'
```

## Example response

```json
{
  "data": {
    "ai_replies": true,
    "audience_id": "<string>",
    "body": "<string>",
    "channel": "<string>",
    "counts": null,
    "created_at": "2026-11-01T09:30:00Z",
    "email_address_id": "<string>",
    "finished_at": "2026-11-01T09:30:00Z",
    "goal": null,
    "holds": [
      "<string>"
    ],
    "id": "<string>",
    "name": "<string>",
    "object": "<string>",
    "pause_reason": "<string>",
    "preview": "<string>",
    "reply_agent_id": "<string>",
    "reply_member_id": "<string>",
    "reply_team_id": "<string>",
    "room_ids": [
      "<string>"
    ],
    "rules": null,
    "schedule_kind": "<string>",
    "scheduled_at": "2026-11-01T09:30:00Z",
    "sender_id": "<string>",
    "service": true,
    "skip_frequency_cap": true,
    "slack_as": "<string>",
    "started_at": "2026-11-01T09:30:00Z",
    "status": "<string>",
    "subject": "<string>",
    "ticket_id": "<string>",
    "topic_id": "<string>",
    "track_clicks": true,
    "updated_at": "2026-11-01T09:30:00Z"
  }
}
```

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
