feat: add broadcasts.cancel() method - #1059
Merged
Merged
Conversation
Cancels a queued or scheduled broadcast via POST /broadcasts/:id/cancel. Returns a validation_error/403 if the broadcast is draft, sent, or failed. Mirrors emails.cancel()'s shape (no body, no options). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
commit: |
klotty
approved these changes
Aug 7, 2026
klotty
left a comment
There was a problem hiding this comment.
No issues found across 4 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Auto-approved: Adds a small, additive broadcasts.cancel() wrapper mirroring emails.cancel(), with types and passing tests for success and 403; no existing behavior or operational config changes, so no human-owned tradeoff remains.
Re-trigger cubic
gabrielmfern
approved these changes
Aug 10, 2026
This was referenced Aug 10, 2026
dielduarte
merged commit Aug 10, 2026
33273b2
into
preview-headless-dashboard
13 of 14 checks passed
This was referenced Aug 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
broadcasts.cancel(id), callingPOST /broadcasts/:id/cancelto cancel a queued or scheduled broadcast.validation_error/403 if the broadcast isdraft,sent, orfailed.emails.cancel()'s shape exactly (no body, no options param) since the underlying endpoint is the same kind of simple id-only action.Companion API docs: resend/resend-docs#(branch
broadcasts-cancel, based onmain).Test plan
pnpm typecheck— clean.nextbuild artifacts undere2e/, unrelated to this change)pnpm test— 28/28 passing inbroadcasts.spec.ts(26 existing + 2 new: success case, 403 not-cancelable case)🤖 Generated with Claude Code
Summary by cubic
Add
broadcasts.cancel(id)to cancel queued or scheduled broadcasts viaPOST /broadcasts/:id/cancel, matchingemails.cancel().validation_error(403) if the broadcast isdraft,sent, orfailed.CancelBroadcastResponsetypes and exports undersrc/broadcasts/interfaces.Written for commit 0470001. Summary will update on new commits.