---
title: "Rename Workspace"
method: PATCH
path: "/api/auth/workspace"
tags: ["auth"]
---

# Rename Workspace

`PATCH /api/auth/workspace`

## Request

- Base URL: `https://api.advisorppc.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.advisorppc.com/api/auth/workspace`
- Auth: HTTP bearer

Set the current workspace's display name.

Scoped to `ctx.tenant_id`, so the tenant id is never taken from the request
and a caller cannot rename a workspace they are not currently in. Every user
is owner of their own personal tenant, which is the intent here — naming
your own workspace is not a privileged platform action.

## Headers

- `X-Tenant-Id` integer, nullable

## Request body

- WorkspaceNameIn: Rename the caller's current workspace. Bounded by the `tenants.name` column (String(200)). Whitespace-only input is rejected rather than silently stored, so "named" and "not named" stay two distinguishable states.
  - `name` string, required

## Response `200`

Successful Response

- WorkspaceNameOut
  - `tenant_id` integer, required
  - `tenant_name` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/advisorppc/apis/advisorppc-api.md) · [All operations](https://skmtc.dev/advisorppc/apis/advisorppc-api/llms.txt) · [OpenAPI document](https://skmtc.dev/advisorppc/apis/advisorppc-api/revisions/3441bd729e0c?raw)
