feat(broadcasts): add duplicate endpoint - #279
Open
gabrielmfern wants to merge 2 commits into
Open
Conversation
Ports resend.broadcasts.duplicate(id) from the Node SDK for
POST /broadcasts/{id}/duplicate (resend/resend-openapi#115).
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
cubic analysis
All reported issues were addressed across 5 files
Linked issue analysis
Linked issue: DEV-2092: Python SDK (internal, squad-devtools)
| Status | Acceptance criteria | Notes |
|---|---|---|
| ✅ | Implement the broadcasts duplicate endpoint in the Python SDK, including synchronous and asynchronous methods. | The diff adds Broadcasts.duplicate and duplicate_async using POST /broadcasts/{id}/duplicate, with response typing and coverage for both paths. |
| ✅ | Release the implementation. | The package version is updated from 2.44.0 to 2.45.0. |
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
gabrielmfern
marked this pull request as ready for review
September 11, 2026 19:12
felipefreitag
approved these changes
Sep 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.
Adds
resend.Broadcasts.duplicate(id)andduplicate_async(id)forPOST /broadcasts/{id}/duplicate, the endpoint added in resend/resend-openapi#115, ported from the Node methodresend.broadcasts.duplicate(id). The release carries 2.45.0.Two things an adversarial review pass wanted gone that stayed on purpose: the one-line behavior note in the docstrings (Templates.duplicate carries the same kind of note) and the async no-content test (every other endpoint in this file has one). Happy to drop either if you disagree.
Live call against staging through the new method, duplicating
e6bd3843-3cc7-4c0d-b7fd-e01cbb514a16, then reading the copy back and deleting it.http_headerselided from the first line.dup.py
🤖 Generated with Claude Code
Summary by cubic
Adds
duplicate()andduplicate_async()toBroadcastsforPOST /broadcasts/{id}/duplicate. Duplicating a broadcast creates a new draft with the same content and " (copy)" appended to its name.Written for commit 1412d51. Summary will update on new commits.