---
title: "Update a team"
method: PATCH
path: "/api/v1/orgs/{slug}/departments/{deptSlug}/teams/{teamSlug}"
tags: ["Org Hierarchy"]
---

# Update a team

`PATCH /api/v1/orgs/{slug}/departments/{deptSlug}/teams/{teamSlug}`

## Request

- Base URL: `https://api.skills-hub.ai`
- URL: `https://api.skills-hub.ai/api/v1/orgs/{slug}/departments/{deptSlug}/teams/{teamSlug}`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

Updates a team's name and/or description. Requires team admin, or the parent department's admin, or org `ADMIN`.

## Path parameters

- `slug` string, required
- `deptSlug` string, required
- `teamSlug` string, required

## Response `200`

Successful response. The returned fields are described in this endpoint's summary/description; typed per-field response schemas are being added incrementally.

- object
  - `id` string
  - `slug` string
  - `name` string
  - `description` string, nullable
  - `memberCount` integer
  - `skillCount` integer
  - `myRole` 'ADMIN' | 'MEMBER' | 'null', nullable
  - `createdAt` string, date-time

---

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