---
title: "Update an existing team"
method: PATCH
path: "/teams/{id}"
tags: ["teams"]
---

# Update an existing team

`PATCH /teams/{id}`

Updates an existing team. Only provided fields are modified.

**Rate limit:** 20 requests per minute

## Path parameters

- `id` string, required

## Request body

- UpdateTeamRequestBody
  - `name` string — The name of the team.
  - `user_ids` string[] — The list of user IDs to add to the team. If provided, the team members will be updated to be exactly the given users.

## Response `200`

- UpdateTeamResponseBody
  - `data` Team
    - `id` string — The ID of the team.
    - `name` string — The name of the team.
    - `users` MiniUser[] — The users in the team.
      - `email` string — The email of the user.
      - `id` string — The ID of the user.
  - `request_id` string — The request ID for tracking.

## Other responses

- `400` — The request was invalid or could not be completed.
- `404`
- `500` — An unexpected internal error occurred.

---

[API](https://skmtc.net/usepylon/apis/pylon-api.md) · [All operations](https://skmtc.net/usepylon/apis/pylon-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/usepylon/pylon-api/versions/484a11d5ddb2/schema)
