---
title: "Edit team"
method: POST
path: "/teams/{teamId}"
tags: ["teams"]
---

# Edit team

`POST /teams/{teamId}`

## Request

- Base URL: `https://api.usecrouton.com`
- URL: `https://api.usecrouton.com/teams/{teamId}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Api-Key`
- TypeScript: <https://skmtc.dev/usecrouton/apis/crouton-api/docs/teams/:teamId/post.ts> (a function with typed inputs; its response is checked against the schema)

Partially updates directory team overrides (name, description). Only provided fields are applied. Null name clears the override and restores the HR name. The API key must be associated with a team administrator or a lead of the team / an ancestor team.

## Request body

- object
  - `name` string, nullable
  - `description` string, nullable

## Response `200`

The updated team.

## Other responses

- `400`: 400
- `401`: Missing, invalid, revoked, or expired API key.
- `403`: API key lacks the required resource or access level.
- `404`: Team not found
- `422`: 422

## Changes

- **2026-10-28** `809cbf38e25a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/usecrouton/apis/crouton-api/changes/teams/:teamId/post.md)

---

[API](https://skmtc.dev/usecrouton/apis/crouton-api.md) - [All operations](https://skmtc.dev/usecrouton/apis/crouton-api/llms.txt) - [OpenAPI document](https://skmtc.dev/usecrouton/apis/crouton-api/revisions/809cbf38e25a?raw)
