Skip to content

feat(automations): duplicate endpoint - #136

Merged
gabrielmfern merged 1 commit into
mainfrom
feature/dev-1705-php-sdk-external-jayan-via-slack-team-sdks
Aug 14, 2026
Merged

feat(automations): duplicate endpoint#136
gabrielmfern merged 1 commit into
mainfrom
feature/dev-1705-php-sdk-external-jayan-via-slack-team-sdks

Conversation

@gabrielmfern

@gabrielmfern gabrielmfern commented Aug 14, 2026

Copy link
Copy Markdown
Member

Adds automations->duplicate($automationId) for POST /automations/{id}/duplicate.

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

🤖 Generated with Claude Code


Summary by cubic

Adds Automations duplicate support to the PHP SDK so clients can clone an existing automation. Previously there was no SDK method; now automations->duplicate($automationId) issues POST /automations/{id}/duplicate and returns the new Automation. Supports DEV-1705.

Details

  • Implements duplicate(string $automationId) in the Automations service, mirroring the existing stop pattern (no request body).
  • Adds a test for the POST path and Automation resource parsing.
  • No breaking changes; consumers can start calling duplicate where needed.

Written for commit 65987a3. 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 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 SDK method duplicate with a focused test, mirroring the existing stop pattern; no changes to existing behavior, contracts, or configuration.

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:20
@gabrielmfern
gabrielmfern merged commit bb7f8f1 into main Aug 14, 2026
10 checks passed
@gabrielmfern
gabrielmfern deleted the feature/dev-1705-php-sdk-external-jayan-via-slack-team-sdks branch August 14, 2026 18:29
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.

2 participants