---
title: "Update a user attribute for teams"
method: PATCH
path: "/v2/user-attributes/{userAttributeId}/teams"
tags: ["User attributes"]
---

# Update a user attribute for teams

`PATCH /v2/user-attributes/{userAttributeId}/teams`

## Request

- Base URL: `https://api.sigmacomputing.com`
- URL: `https://api.sigmacomputing.com/v2/user-attributes/{userAttributeId}/teams`
- Auth: HTTP bearer

Update a user attribute for one or more teams. Currently, this endpoint only supports deleting a user attribute assignment.

  ### Usage notes
  - Retrieve the **userAttributeId** by calling the [/v2/user-attributes](https://help.sigmacomputing.com/reference/list-user-attributes) endpoint.
  - Retrieve the **teamId** by calling the [/v2/teams](https://help.sigmacomputing.com/reference/list-teams) endpoint.

## Path parameters

- `userAttributeId` string, required

## Request body

- object
  - `delete` V2UserAttributesUserAttributeIdTeamsPatchRequestBodyContentApplicationJsonSchemaDeleteItems[], required: The teams whose assignments are to be revoked.
    - `teamId` string, required: Unique identifier of the team.

## Response `200`

The response body.

- UserAttributesUpdateUserAttributeForTeamsResponse200

---

[API](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api.md) - [All operations](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/revisions/fb6036208c49?raw)
