---
title: "Rename or reposition a space"
method: PATCH
path: "/projects/spaces/{id}"
tags: ["Projects"]
---

# Rename or reposition a space

`PATCH /projects/spaces/{id}`

## Request

- Base URL: `https://api.atako.ai`
- URL: `https://api.atako.ai/projects/spaces/{id}`
- Auth: HTTP bearer

At least one of `name` / `position`. Any company member can.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `name` string
  - `position` integer

## Response `200`

- object
  - `space` ProjectSpace, required: A company-owned grouping of projects. A project belongs to 0 or 1 space; deleting a space leaves its projects without one.
    - `id` string, uuid, required
    - `name` string, required: Unique within the company, case-insensitively.
    - `position` integer, required: Reserved for a manual order (no UI yet). Spaces list by position, then name.
    - `projectCount` integer, required: Non-archived projects in the space.
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required

## Other responses

- `400`: Validation error / empty body / malformed id.
- `401`: Missing, malformed, or invalid bearer token / API key, or revoked session (SESSION_REVOKED).
- `404`: Not found, or the caller is not authorized to access this resource.
- `409`: SPACE_NAME_TAKEN

---

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