---
title: "PUT /applications/{applicationId}/users/{userId}"
method: PUT
path: "/applications/{applicationId}/users/{userId}"
---

# PUT /applications/{applicationId}/users/{userId}

`PUT /applications/{applicationId}/users/{userId}`

Updates a information associated with a user id.

## Path parameters

- `applicationId` string, required
- `userId` string, required

## Request body

- object
  - `userAliasesToUpdate` UserAlias[] — The user aliases attached to the user id that are to be updated.
    - `indexId` string — The identifier of the index that the user aliases are associated with.
    - `dataSourceId` string — The identifier of the data source that the user aliases are associated with.
    - `userId` string, required — The identifier of the user id associated with the user aliases.
  - `userAliasesToDelete` UserAlias[] — The user aliases attached to the user id that are to be deleted.
    - `indexId` string — The identifier of the index that the user aliases are associated with.
    - `dataSourceId` string — The identifier of the data source that the user aliases are associated with.
    - `userId` string, required — The identifier of the user id associated with the user aliases.

## Response `200`

Success

- UpdateUserResponse
  - `userAliasesAdded` UserAlias[] — The user aliases that have been to be added to a user id.
    - `indexId` string — The identifier of the index that the user aliases are associated with.
    - `dataSourceId` string — The identifier of the data source that the user aliases are associated with.
    - `userId` string, required — The identifier of the user id associated with the user aliases.
  - `userAliasesUpdated` UserAlias[] — The user aliases attached to a user id that have been updated.
    - `indexId` string — The identifier of the index that the user aliases are associated with.
    - `dataSourceId` string — The identifier of the data source that the user aliases are associated with.
    - `userId` string, required — The identifier of the user id associated with the user aliases.
  - `userAliasesDeleted` UserAlias[] — The user aliases that have been deleted from a user id.
    - `indexId` string — The identifier of the index that the user aliases are associated with.
    - `dataSourceId` string — The identifier of the data source that the user aliases are associated with.
    - `userId` string, required — The identifier of the user id associated with the user aliases.

## Other responses

- `480` — InternalServerException
- `481` — ResourceNotFoundException
- `482` — ConflictException
- `483` — ThrottlingException
- `484` — ValidationException
- `485` — AccessDeniedException
- `486` — ServiceQuotaExceededException

---

[API](https://skmtc.net/aws/apis/qbusiness.md) · [All operations](https://skmtc.net/aws/apis/qbusiness/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/qbusiness/versions/82966d6c4053/schema)
