---
title: "Renames a team. Only the team owner can do this. (Roles: user)"
method: PATCH
path: "/teams/{id}"
tags: ["Team"]
---

# Renames a team. Only the team owner can do this. (Roles: user)

`PATCH /teams/{id}`

## Path parameters

- `id` string, required

## Request body

- UpdateTeamPayload
  - `name` string, required

## Response `200`

Success

- Team
  - `_id` string
  - `name` string
  - `subscription_id` string
  - `owner_id` string
  - `users` TeamUser[]
    - `user_id` string
    - `role` 'owner' | 'editor'
    - `subscription_id` string
  - `invitations` TeamInvitation[]
    - `email` string
    - `role` 'editor'
  - `slack_token` boolean

## Other responses

- `400` — Error
- `403` — Not the team owner
- `404` — Team not found

## Changes

- **2026-09-30** `09a7e4ba9d99` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/ludo/apis/ludo-ai-api/changes/teams/:id/patch.md)

---

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