---
title: "Rename organization URL"
method: POST
path: "/v1/organizations/{organizationId}/slug"
tags: ["Account"]
---

# Rename organization URL

`POST /v1/organizations/{organizationId}/slug`

## Request

- Base URL: `https://api.inth.com`
- URL: `https://api.inth.com/v1/organizations/{organizationId}/slug`
- Auth: HTTP bearer

Requires organizations.settings.write and admin or owner. expectedSlug must match the current locked organization row. Reserves the previous slug and renames runtime routes. Existing org-slug-rename flag applies. Slugs use 3 to 20 lowercase letters, digits and internal hyphens. Requires a user-delegated OAuth token. Organization API keys are refused. Enforced after scope and role authorization: rollout-agent-access-writes (default off) and allow-public-agent-writes (default on). Reads remain available when writes are paused.

## Path parameters

- `organizationId` string, required

## Request body

- OrganizationSlugUpdate
  - `newSlug` string, required
  - `expectedSlug` string, required

## Response `200`

Rename organization URL

- object
  - `success` true, required
  - `data` OrganizationSlugResult, required
    - `newSlug` string, required
    - `oldSlug` string, required

## Other responses

- `400`: The request payload or parameters are invalid.
- `401`: Authentication is missing, invalid, or expired.
- `403`: The credential is valid but may not perform the operation. `INSUFFICIENT_SCOPE`: the credential was never granted the capability the operation needs. `details.requiredScope` names it, and the `WWW-Authenticate` header carries `Bearer error="insufficient_scope"`. An OAuth client fixes this by requesting the scope; an organization API key cannot gain it. `FORBIDDEN`: the capability is present but the membership behind the credential lacks the role, or the resource belongs to another organization.
- `404`: The requested resource was not found.
- `409`: The request conflicts with the current resource state.
- `503`: The capability is temporarily paused by an operator. Retry later.

## Changes

- **2026-10-31** `a3f4100e14c9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/inth/apis/inth-api/changes/v1/organizations/:organizationId/slug/post.md)

---

[API](https://skmtc.dev/inth/apis/inth-api.md) - [All operations](https://skmtc.dev/inth/apis/inth-api/llms.txt) - [OpenAPI document](https://skmtc.dev/inth/apis/inth-api/revisions/8741280c3463?raw)
