feat(broadcasts): add duplicate endpoint - #142
Merged
kewynakshlley merged 2 commits intoSep 14, 2026
Merged
kewynakshlley merged 2 commits into
kewynakshlley merged 2 commits into
Conversation
Ports resend.broadcasts.duplicate(id) from the Node SDK for
POST /broadcasts/{id}/duplicate, added in 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.
All reported issues were addressed across 4 files
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:22
kewynakshlley
approved these changes
Sep 14, 2026
kewynakshlley
deleted the
feature/dev-2099-java-sdk-external-kewyn-via-slack-team-sdks
branch
September 14, 2026 11:44
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.
Ports
resend.broadcasts.duplicate(id)from the Node SDK:Broadcasts.duplicate(String id)posts to/broadcasts/{id}/duplicate, the endpoint added in resend/resend-openapi#115, and returns aDuplicateBroadcastResponseSuccesscarrying the id of the new draft. The method matchesTemplates.duplicateandAutomations.duplicate; the response type follows the broadcasts package and extendsBaseBroadcastResponselikeCancelBroadcastResponseSuccessinstead of being a flat DTO like theirs. The release carries 4.25.0.Staging call through
Broadcasts.duplicatefrom the 4.25.0 jar in Maven local.HttpClient.BASE_APIis a hardcoded constant, so the call went through aHttpClientsubclass withperformoverridden to hithttps://api.resend-staging.com; the copy was deleted afterwards.Left open on purpose:
objectis now duplicated acrossCancelBroadcastResponseSuccess,RemoveBroadcastResponseSuccess, andDuplicateBroadcastResponseSuccessand could be hoisted intoBaseBroadcastResponse. That touches the sibling models, so it stays out of this single-endpoint port.🤖 Generated with Claude Code
Summary by cubic
Adds
Broadcasts.duplicate(id)to the Java SDK, matching the Node SDK'sresend.broadcasts.duplicateand the endpoint from resend/resend-openapi#115.The new method posts to
/broadcasts/{id}/duplicateand returns aDuplicateBroadcastResponseSuccesswith the new draft's ID. The version bumps to 4.25.0.Refactors
objectis now duplicated acrossCancelBroadcastResponseSuccess,RemoveBroadcastResponseSuccess, andDuplicateBroadcastResponseSuccess; hoisting it intoBaseBroadcastResponseis left for a future PR to keep this change focused.Written for commit 291c2f1. Summary will update on new commits.