---
title: "Update team"
method: PUT
path: "/teams/{team_id}"
---

# Update team

`PUT /teams/{team_id}`

Update an existing team

## Path parameters

- `team_id` integer, required

## Request body

- object
  - `name` string — The new name of the team. If not provided, no changes are made
  - `responsibilities` object[] — A list of resources (code repos, ...), of which this team is responsible for. Note: the provided array of responsibilities will entirely replace the current set of responsibilities. If the property is not provided or the value 'null' is provided, no changes are made to the responsibilities of this team.
    - `id` integer, required — The ID of the resource. Must be the Aikido ID of the resource
    - `type` 'code_repository', required — Indicates the type of the resource.

## Response `200`

The team has been successfully updated

- object
  - `status` 'ok' — The ID of the newly created team in Aikido.

## Other responses

- `400` — One or more of the provided fields are invalid.
- `404` — The provided team_id does not belong to an existing team.

---

[API](https://skmtc.net/aikido/apis/authorization.md) · [All operations](https://skmtc.net/aikido/apis/authorization/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aikido/authorization/versions/5445e7c21137/schema)
