---
title: "Update a team by ID"
method: PATCH
path: "/api/v1/teams/{teamId}"
tags: ["crm"]
---

# Update a team by ID

`PATCH /api/v1/teams/{teamId}`

## Path parameters

- `teamId` string, uuid, required

## Request body

- TeamCreateRequestDTO
  - `name` string, required — The name of the team (1-50 characters)

## Response `201`

- TeamsUpdateTeamResponseDTO
  - `createdAt` string, date-time, required — The date and time the team was created
  - `id` string, required — The unique identifier of the team
  - `name` string, required — The name of the team
  - `organizationId` string, required — The unique identifier of the organization this team belongs to
  - `users` object[], nullable — The users that belong to this team
    - `createdAt` string, date-time, required — The date when the user was created
    - `email` string, nullable — The email address of the user
    - `enabled` boolean, required — Whether the user account is enabled
    - `firstName` string, nullable — The first name of the user
    - `id` string, required — The unique identifier of the user
    - `lastLoginDate` string, date-time, nullable — The date when the user last logged in. Omitted from the response when the user has never logged in.
    - `lastName` string, nullable — The last name of the user
    - `pictureUrl` string, nullable — The profile picture URL of the user
    - `roles` string[], nullable — The roles of the user in the organization
    - `teams` object[] — The teams the user belongs to
      - `id` string, required — The unique identifier of the team
      - `name` string, required — The name of the team

---

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