---
title: "Update a team"
method: PATCH
path: "/v1/teams/{team_id}"
tags: ["Teams"]
---

# Update a team

`PATCH /v1/teams/{team_id}`

Update a team's name and/or its description.

If you are using a personal access token, you must have "can manage" permission on the team or be a workspace manager.

The "All-incidents" team (is_global=true) cannot be updated.

## Path parameters

- `team_id` integer, required

## Request body

- object
  - `id` integer
  - `name` string
  - `description` string, nullable — team description.
  - `is_global` boolean
  - `gitguardian_url` string
  - `external_provider_id` string, nullable — ID of the external provider associated to the team.

## Response `200`

The team was updated successfully.

- object
  - `id` integer
  - `name` string
  - `description` string, nullable — team description.
  - `is_global` boolean
  - `gitguardian_url` string
  - `external_provider_id` string, nullable — ID of the external provider associated to the team.

## Other responses

- `400` — Invalid data
- `401` — Invalid API key
- `503` — API under maintenance

---

[API](https://skmtc.net/gitguardian/apis/gitguardian-api.md) · [All operations](https://skmtc.net/gitguardian/apis/gitguardian-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitguardian/gitguardian-api/revisions/511b067cdcb1/schema)
