feat: add broadcasts.cancel() method - #91
Merged
Merged
Conversation
Cancels a queued or scheduled broadcast via POST /broadcasts/:id/cancel, mirroring the get/delete broadcast request shape (no body). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
klotty
approved these changes
Aug 10, 2026
klotty
left a comment
There was a problem hiding this comment.
No issues found across 2 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Auto-approved: Adds a new cancel() API method and response type mirroring existing broadcast methods, with a deserialization test. Additive, well-scoped change with no operational or contract tradeoffs.
Re-trigger cubic
This was referenced Aug 10, 2026
dielduarte
marked this pull request as ready for review
August 11, 2026 12:08
This was referenced Aug 11, 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
BroadcastsSvc::cancel(broadcast_id), callingPOST /broadcasts/:id/cancelto cancel a queued or scheduled broadcast.CancelBroadcastResponsetype (id) and re-exports it fromlib.rs, mirroringSendBroadcastResponse/UpdateBroadcastResponse.parse_cancel_broadcast_response_testdeserialization test, matching the existingparse_broadcast_testpattern.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.
Test plan
cargo check --lib --tests(default features) — cleancargo clippy --lib --tests --no-default-features --features blocking,native-tls -- -D warnings— cleancargo test --lib broadcasts::— 2 passed, 3 pre-existing ignored (live-API integration tests)cargo fmt --check— clean🤖 Generated with Claude Code
Summary by cubic
Adds
BroadcastsSvc::cancel()to cancel queued or scheduled broadcasts via POST/broadcasts/:id/cancel. ExposesCancelBroadcastResponseand re-exports it inlib.rsto match other broadcast responses.cancel(broadcast_id); sends POST with no body and returnsCancelBroadcastResponse.CancelBroadcastResponse { id }; re-exported fromlib.rs.parse_cancel_broadcast_response_testfor deserialization.Written for commit e49fdc3. Summary will update on new commits.