---
title: "Update a team"
method: PATCH
path: "/reseller/companies/{company_uuid}/teams/{uuid}"
---

# Update a team

`PATCH /reseller/companies/{company_uuid}/teams/{uuid}`

## Request

- Base URL: `https://public-api.leexi.ai/v1`
- URL: `https://public-api.leexi.ai/v1/reseller/companies/{company_uuid}/teams/{uuid}`
- Auth: API key in header `Authorization`

Update a team of a client company. Only the attributes present in the body are updated.

## Path parameters

- `company_uuid` string, required
- `uuid` string, required

## Request body

- object
  - `active` boolean: Defaults to `true` on creation. A team can only be deactivated once it has no active users.
  - `name` string: The team name. It must be unique within the client company.

## Response `200`

200

- object
  - `data` object
    - `active` boolean
    - `created_at` string
    - `name` string
    - `updated_at` string
    - `uuid` string
  - `message` string
  - `success` boolean

## Other responses

- `401`: 401
- `402`: 402
- `403`: 403
- `404`: 404
- `409`: 409
- `422`: 422
- `429`: 429

---

[API](https://skmtc.dev/leexi/apis/leexi-public-api.md) · [All operations](https://skmtc.dev/leexi/apis/leexi-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/leexi/apis/leexi-public-api/revisions/3d10e45c30f5?raw)
