---
title: "Update a team"
method: PUT
path: "/legacyTeams/{id}"
tags: ["LegacyTeams"]
deprecated: true
---

# Update a team

`PUT /legacyTeams/{id}`

> **Deprecated.**

Updates an existing team and returns the updated object.

## Path parameters

- `id` integer, required

## Request body

- object
  - `name` string — The team name
  - `description` string — The team description
  - `manager_id` integer — The team manager ID
  - `users` integer[] — The list of user IDs
  - `active_flag` 0 | 1 — Flag that indicates whether the team is active
  - `deleted_flag` 0 | 1 — Flag that indicates whether the team is deleted

## Response `200`

The team data

- object
  - `success` boolean — If the response is successful or not
  - `data` object
    - `id` integer — The team ID
    - `name` string — The team name
    - `description` string — The team description
    - `manager_id` integer — The team manager ID
    - `users` integer[] — The list of user IDs
    - `active_flag` 0 | 1 — Flag that indicates whether the team is active
    - `deleted_flag` 0 | 1 — Flag that indicates whether the team is deleted
    - `add_time` string — The team creation time. Format: YYYY-MM-DD HH:MM:SS
    - `created_by_user_id` integer — The ID of the user who created the team

## Other responses

- `403` — Forbidden response
- `404` — Team with specified ID does not exist or is inaccessible

---

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