Skip to content

feat(segments): add SegmentUpdateAsync for PATCH /segments/:id - #153

Merged
dielduarte merged 2 commits into
mainfrom
feature/dev-1205-edit-segments-through-the-api
Aug 26, 2026
Merged

feat(segments): add SegmentUpdateAsync for PATCH /segments/:id#153
dielduarte merged 2 commits into
mainfrom
feature/dev-1205-edit-segments-through-the-api

Conversation

@dielduarte

@dielduarte dielduarte commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Adds SegmentUpdateAsync for PATCH /segments/:id, which renames a segment.

var resp = await resend.SegmentUpdateAsync( segmentId, new SegmentData()
{
    Name = "New segment name",
} );

Console.WriteLine( resp.Content.Name );

Params

  • name (string, required) — the new segment name.

Response

{
  "object": "segment",
  "id": "...",
}

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No issues found across 8 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Adds new public SegmentUpdateAsync API for PATCH /segments/:id plus CLI command and fake server; needs human sign-off because it expands the public API surface and is a new feature, not a bounded fix.

Re-trigger cubic

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

0 issues found across 3 files (changes from recent commits).

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Adds new public SegmentUpdateAsync API for PATCH /segments/:id plus CLI command and fake server; expands public API surface as a new feature, so needs human sign-off.

Re-trigger cubic

@dielduarte
dielduarte marked this pull request as ready for review August 26, 2026 13:21
@@ -0,0 +1,42 @@
using McMaster.Extensions.CommandLineUtils;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

let's maybe not update the CLI? we've already deprecated it anyway, we don't need to update it

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