---
title: "PATCH /user_roles/{userId}"
method: PATCH
path: "/user_roles/{userId}"
tags: ["User Management"]
---

# PATCH /user_roles/{userId}

`PATCH /user_roles/{userId}`

## Request

- Base URL: `https://sort.veritas.com/infoscale/api/2.0`
- URL: `https://sort.veritas.com/infoscale/api/2.0/user_roles/{userId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/veritas/apis/veritas-infoscale-api/docs/user_roles/:userId/patch.ts> (a function with typed inputs; its response is checked against the schema)

Modify the role of the user

## Path parameters

- `userId` string, required

## Headers

- `token` string

## Request body

- UserModifyRequest
  - `roles` string[], required: The roles of the user.

## Response `201`

Successfully modified the role of the user.

- UserDetailResponse
  - `username` string: The name of the user.
  - `role` string: The role of the user.

## Other responses

- `400`: The user name or the role is incorrect.
- `401`: Unauthorized

---

[API](https://skmtc.dev/veritas/apis/veritas-infoscale-api.md) - [All operations](https://skmtc.dev/veritas/apis/veritas-infoscale-api/llms.txt) - [OpenAPI document](https://skmtc.dev/veritas/apis/veritas-infoscale-api/revisions/1e3d3f7145bb?raw)
