Skip to content

feat: add BroadcastCancelAsync method - #136

Merged
dielduarte merged 1 commit into
mainfrom
broadcasts-cancel
Aug 12, 2026
Merged

feat: add BroadcastCancelAsync method#136
dielduarte merged 1 commit into
mainfrom
broadcasts-cancel

Conversation

@dielduarte

@dielduarte dielduarte commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds IResend.BroadcastCancelAsync(broadcastId), calling POST /broadcasts/:id/cancel to cancel a queued or scheduled broadcast, mirroring EmailCancelAsync's shape (no body).
  • Adds the resend broadcast cancel <id> CLI subcommand, matching the existing broadcast delete/broadcast send commands.
  • Adds a matching route to the fake Resend.ApiServer test server and a BroadcastCancel test in ResendClientTests.

Part of the broadcast cancel rollout: resend/resend-monorepo#8126, resend/resend-openapi#85, resend/resend-node#1059, resend/resend-docs#1722, resend/resend-go#144, resend/resend-java#122, resend/resend-php#135, resend/resend-python#250, resend/resend-ruby#216, resend/resend-rust#91.

Test plan

  • dotnet test tests/Resend.Tests — 8/8 broadcast tests passing, including new BroadcastCancel
  • dotnet build resend-dotnet.sln -warnaserror:CS1591 (full 18-project solution, including CLI) — clean

🤖 Generated with Claude Code


Summary by cubic

Adds broadcast cancel support so users can stop a queued or scheduled broadcast before it sends. Includes a new client method and a matching CLI command.

  • New Features
    • Added IResend.BroadcastCancelAsync(broadcastId) calling POST /broadcasts/:id/cancel (no body), mirroring EmailCancelAsync.
    • Added CLI command: resend broadcast cancel <id>.
    • Added fake server route and a BroadcastCancel test.

Written for commit 244e833. Summary will update on new commits.

Review in cubic

Cancels a queued or scheduled broadcast via POST /broadcasts/:id/cancel,
mirroring EmailCancelAsync's shape (no body). Adds the CLI subcommand
and fake-server route to match the existing broadcast operations.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 6 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Adds a new public API method and CLI command for cancelling broadcasts, expanding the client's public contract and surface area; a human should review the API design and semantics.

Re-trigger cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants