Skip to content

feat(automations): duplicate endpoint - #253

Open
gabrielmfern wants to merge 1 commit into
mainfrom
feature/dev-1708-python-sdk-internal-squad-devtools
Open

feat(automations): duplicate endpoint#253
gabrielmfern wants to merge 1 commit into
mainfrom
feature/dev-1708-python-sdk-internal-squad-devtools

Conversation

@gabrielmfern

@gabrielmfern gabrielmfern commented Aug 14, 2026

Copy link
Copy Markdown
Member

Adds resend.Automations.duplicate(automation_id) and duplicate_async(automation_id) for POST /automations/{id}/duplicate.

Resolves DEV-1708. Mirrors the existing stop/stop_async pattern and resend-node resend/resend-node#1071.

🤖 Generated with Claude Code


Summary by cubic

Adds resend.Automations.duplicate() and duplicate_async() to clone an automation via POST /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

  • Adds Automations.DuplicateResponse with object and id for the new automation.
  • Implements resend.Automations.duplicate(automation_id) and resend.Automations.duplicate_async(automation_id) using a POST to /automations/{id}/duplicate, mirroring the existing stop/stop_async pattern.
  • Tests cover sync and async success paths and raise NoContentError when the API returns no body, consistent with existing error handling.
  • Supports Linear DEV-1708 by exposing duplication in the Python SDK for Devtools usage.

Written for commit fa2baed. Summary will update on new commits.

Review in cubic

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

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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
gabrielmfern marked this pull request as ready for review August 14, 2026 15:28
@gabrielmfern
gabrielmfern requested a review from drish August 14, 2026 15:30
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.

1 participant