> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xenia.team/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Team

> Requires the **Manage Teams** (`CAN_MANAGE_TEAMS`) permission on the acting user (the key's default user, or `x-client-user`).

**Full replace.** `name` and `isActive` are required every time, and `Members` is the whole member list: omit it and every member is removed. Send `LocationId` on every update too; nothing is merged with the stored team. Read the team first with [List Teams](/api-reference/endpoints/teams/get-teams) if you only want to change one field.



## OpenAPI

````yaml PUT /api/v1/mgt/workspaces/{workspaceId}/teams/{teamId}
openapi: 3.1.0
info:
  title: Xenia Team API - Update Team
  version: 1.0.0
  description: Replace a team.
servers:
  - url: https://api.xenia.team
security: []
paths:
  /api/v1/mgt/workspaces/{workspaceId}/teams/{teamId}:
    put:
      tags:
        - Teams
      summary: Update Team
      description: >-
        Requires the **Manage Teams** (`CAN_MANAGE_TEAMS`) permission on the
        acting user (the key's default user, or `x-client-user`).


        **Full replace.** `name` and `isActive` are required every time, and
        `Members` is the whole member list: omit it and every member is removed.
        Send `LocationId` on every update too; nothing is merged with the stored
        team. Read the team first with [List
        Teams](/api-reference/endpoints/teams/get-teams) if you only want to
        change one field.
      parameters:
        - name: workspaceId
          in: path
          required: true
          description: UUID of the workspace. Must be your key's own workspace.
          schema:
            type: string
            format: uuid
            example: cb363f7e-c52a-4478-911d-f6a6f791090e
        - name: teamId
          in: path
          required: true
          description: ID of the team.
          schema:
            type: string
            example: 3ab9c8d7-2222-4bbb-8ccc-1e2f3a4b5c6d
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
                - isActive
              additionalProperties: false
              properties:
                name:
                  type: string
                  example: Merchandising
                isActive:
                  type: boolean
                  example: true
                Members:
                  type:
                    - array
                    - 'null'
                  items:
                    type: string
                    format: uuid
                  description: >-
                    User IDs in this workspace. The full member list: users left
                    out are removed, and omitting `Members` removes everyone.
                  example:
                    - e25dd448-7ae7-4588-8767-7e1a316547e5
                    - 183f639a-8358-485f-9abe-221d0efcbe8e
                LocationId:
                  type:
                    - string
                    - 'null'
                  format: uuid
                  description: Optional location the team belongs to.
                  example: 7f3e2d1c-0b9a-4876-9543-210fedcba987
            example:
              name: Merchandising
              isActive: true
              Members:
                - e25dd448-7ae7-4588-8767-7e1a316547e5
                - 183f639a-8358-485f-9abe-221d0efcbe8e
              LocationId: 7f3e2d1c-0b9a-4876-9543-210fedcba987
      responses:
        '200':
          description: Team updated.
          content:
            application/json:
              example:
                data:
                  id: 3ab9c8d7-2222-4bbb-8ccc-1e2f3a4b5c6d
                  WorkspaceId: cb363f7e-c52a-4478-911d-f6a6f791090e
                  name: Merchandising
                  LocationId: 7f3e2d1c-0b9a-4876-9543-210fedcba987
                  isActive: true
                  CreatedBy: dfea8b8a-5b22-4668-b68d-dc641eb3a101
                  UpdatedBy: dfea8b8a-5b22-4668-b68d-dc641eb3a101
                  createdAt: '2026-11-24T10:00:00.000Z'
                  updatedAt: '2026-11-24T10:00:00.000Z'
                  Creator:
                    id: dfea8b8a-5b22-4668-b68d-dc641eb3a101
                    firstName: Dana
                    lastName: Reyes
                  Location:
                    id: 7f3e2d1c-0b9a-4876-9543-210fedcba987
                    name: Store 104
                  Members:
                    - id: a1b2c3d4-1111-4aaa-8bbb-0c1d2e3f4a5b
                      MemberId: e25dd448-7ae7-4588-8767-7e1a316547e5
                      Profile:
                        id: e25dd448-7ae7-4588-8767-7e1a316547e5
                        firstName: Sam
                        lastName: Ortiz
                    - id: b2c3d4e5-2222-4bbb-9ccc-1d2e3f4a5b6c
                      MemberId: 183f639a-8358-485f-9abe-221d0efcbe8e
                      Profile:
                        id: 183f639a-8358-485f-9abe-221d0efcbe8e
                        firstName: Lee
                        lastName: Chen
                  MemberLocations:
                    - id: 7f3e2d1c-0b9a-4876-9543-210fedcba987
                      name: Store 104
                meta: {}
        '400':
          description: A member ID is not a user in this workspace.
          content:
            application/json:
              examples:
                badMembers:
                  summary: Invalid member list is provided!
                  value:
                    error:
                      message: Invalid member list is provided!
                      meta: {}
        '401':
          description: >-
            Unauthorized - invalid client credentials, or the key does not
            belong to this workspace.
        '403':
          description: Forbidden - route not allowed for API keys, or missing permission.
          content:
            application/json:
              examples:
                missingPermission:
                  summary: You don't have permission "Can manage teams".
                  value:
                    error:
                      message: You don't have permission "Can manage teams".
                      meta: {}
        '404':
          description: Team not found in this workspace.
          content:
            application/json:
              examples:
                notFound:
                  summary: Team not found.
                  value:
                    error:
                      message: Team not found.
                      meta: {}
        '422':
          description: >-
            Validation failed - a required field is missing or has the wrong
            type, or the body has an unknown field.
          content:
            application/json:
              example:
                error:
                  error: 'Error: Team status is required'
                  message: Team status is required
                  meta: {}
        '500':
          description: Internal server error.
      security:
        - clientKey: []
          clientSecret: []
components:
  securitySchemes:
    clientKey:
      type: apiKey
      in: header
      name: x-client-key
    clientSecret:
      type: apiKey
      in: header
      name: x-client-secret

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.