Skip to content

feat: add site rename endpoint - #261

Merged
vigneshrajsb merged 4 commits into
mainfrom
site-rename
Oct 13, 2026
Merged

vigneshrajsb merged 4 commits into
mainfrom
site-rename

Conversation

@vigneshrajsb

@vigneshrajsb vigneshrajsb commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Description

  • Adds PATCH /api/v2/sites/{siteId} so a site owner can rename a site.
  • Only the display name changes. The site ID and content URL stay the same.
  • Names are trimmed and must be 1-255 characters, with no control or text-direction characters. The same check now applies when creating a site. A rename is audited, and an unchanged name is a no-op.

Verifying Changes

  • Added service and route tests; the sites tests, lint, and the new OpenAPI operation (renameSite) check out.

Notes

  • Matches the existing owner-only rules. expectedAccessRevision is optional and a rename does not bump it.
  • tsc reports existing errors in unrelated workspace files; none are in this change.

@vigneshrajsb
vigneshrajsb marked this pull request as ready for review October 13, 2026 00:44
@vigneshrajsb
vigneshrajsb requested a review from a team as a code owner October 13, 2026 00:44
@vigneshrajsb
vigneshrajsb merged commit 8933b58 into main Oct 13, 2026
5 checks passed
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