---
title: "PATCH /v2/teams/{teamId}"
method: PATCH
path: "/v2/teams/{teamId}"
tags: ["teams"]
---

# PATCH /v2/teams/{teamId}

`PATCH /v2/teams/{teamId}`

## Request

- Base URL: `https://api.thecompaniesapi.com`
- URL: `https://api.thecompaniesapi.com/v2/teams/{teamId}`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/thecompaniesapi/apis/the-companies-api/docs/v2/teams/:teamId/patch.ts> (a function with typed inputs; its response is checked against the schema)

Update a team.

## Path parameters

- `teamId` number, required

## Request body

- object
  - `country` string
  - `name` string
  - `websiteUrl` string

## Response `200`

Update a team.

- Team: A collection of users that can access the same resources.
  - `admin` boolean, nullable, required
  - `country` string, nullable, required
  - `createdAt` string, nullable, required
  - `credits` number, required
  - `creditsPack` number, required
  - `id` number, required
  - `name` string, nullable, required
  - `role` string, nullable
  - `stripeCustomerId` string, nullable, required
  - `stripeProductId` string, nullable, required
  - `stripeSubscribed` boolean, required
  - `stripeSubscriptionId` string, nullable, required
  - `stripeSubscriptionStatus` string, nullable, required
  - `websiteUrl` string, nullable, required

## Other responses

- `401`: The error message
- `403`: The error message
- `404`: The error message

---

[API](https://skmtc.dev/thecompaniesapi/apis/the-companies-api.md) - [All operations](https://skmtc.dev/thecompaniesapi/apis/the-companies-api/llms.txt) - [OpenAPI document](https://skmtc.dev/thecompaniesapi/apis/the-companies-api/revisions/f8bfc2d10b71?raw)
