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

# Update a user attribute for users

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

## Request

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

Update a user attribute for one or more users. 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.
  - Specify one or more users by userId. Retrieve the **userId** by calling the [/v2/members](https://help.sigmacomputing.com/reference/list-members) endpoint and using the `memberId` included in the response.

## Path parameters

- `userAttributeId` string, required

## Request body

- object
  - `delete` V2UserAttributesUserAttributeIdUsersPatchRequestBodyContentApplicationJsonSchemaDeleteItems[], required: The users whose assignments are to be revoked.
    - `userId` string, required: The unique identifier of the user.

## Response `200`

The response body.

- UserAttributesUpdateUserAttributeForUsersResponse200

---

[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)
