feat(automations): duplicate endpoint - #253
Open
gabrielmfern wants to merge 1 commit into
Open
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
No issues found across 3 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Auto-approved: Adds new duplicate/duplicate_async SDK methods for an existing endpoint, mirroring the established stop/stop_async pattern; tests cover success and error paths, and no existing behavior or contracts change.
Re-trigger cubic
Approval not submitted
This repository is configured to approve as @klotty, but that approval identity is unavailable.
The refresh token passed is incorrect or expired.
cubic left this as a normal review comment instead of falling back to a Cubic App approval.
gabrielmfern
marked this pull request as ready for review
August 14, 2026 15:28
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.Automations.duplicate(automation_id)andduplicate_async(automation_id)forPOST /automations/{id}/duplicate.Resolves DEV-1708. Mirrors the existing
stop/stop_asyncpattern and resend-node resend/resend-node#1071.🤖 Generated with Claude Code
Summary by cubic
Adds
resend.Automations.duplicate()andduplicate_async()to clone an automation viaPOST /automations/{id}/duplicate. Previously the SDK had no duplication method; now both sync and async clients can duplicate by ID without breaking existing behavior.Review notes
Automations.DuplicateResponsewithobjectandidfor the new automation.resend.Automations.duplicate(automation_id)andresend.Automations.duplicate_async(automation_id)using a POST to/automations/{id}/duplicate, mirroring the existingstop/stop_asyncpattern.NoContentErrorwhen the API returns no body, consistent with existing error handling.Written for commit fa2baed. Summary will update on new commits.