PATCH /api/v1/admin/orgs/:slug
This page is auto-generated from
src/admin/routes.ts. Do not edit by hand — seedocs/dev/docs-auto-sync.md.
:warning: Heuristic extraction — not a contract. Response shapes below are mined from
c.json(...)literals in the handler via an AST walker. Computed fields, ternaries, and non-literal returns are shown as placeholders. Refer to the linked source file for the authoritative behaviour.
PATCH /api/v1/admin/orgs/:slug
Section titled “PATCH /api/v1/admin/orgs/:slug”Authentication
Section titled “Authentication”Requires the following capability(ies):
members:w
Middleware
Section titled “Middleware”Other middleware observed on this route (heuristic):
requireCapabilityrequireSensitiveOpadminBodyLimit
Responses
Section titled “Responses”HTTP 400
Section titled “HTTP 400”{ "error": "invalid_body"}HTTP 400
Section titled “HTTP 400”{ "error": "missing_slug"}HTTP 400
Section titled “HTTP 400”{ "error": "invalid_slug_format"}HTTP 400
Section titled “HTTP 400”{ "error": "rename_unchanged"}HTTP 404
Section titled “HTTP 404”{ "error": "org_not_found"}HTTP 429
Section titled “HTTP 429”{ "error": "rate_limited", "retry_after_minutes": <remainingMin>}HTTP 409
Section titled “HTTP 409”{ "error": "slug_reuse_blocked", "retry_after_minutes": <member-expr>}HTTP 409
Section titled “HTTP 409”{ "error": "rename_conflict"}HTTP 409
Section titled “HTTP 409”{ "error": "rename_stale"}HTTP 502
Section titled “HTTP 502”{ "error": "stytch_mirror_failed", "old_slug": <oldSlug>, "new_slug": <newSlug>, "history_id": <member-expr>, "blocklist_rewrite_count": <member-expr>, "error_message": <errorMessage>}HTTP 200
Section titled “HTTP 200”{ "old_slug": <oldSlug>, "new_slug": <newSlug>, "history_id": <member-expr>, "blocklist_rewrite_count": <member-expr>}Source
Section titled “Source”- File:
src/admin/routes.ts - Line: 4040