---
title: "PUT /api/identity/users/{id}/roles"
method: PUT
path: "/api/identity/users/{id}/roles"
tags: ["User"]
---

# PUT /api/identity/users/{id}/roles

`PUT /api/identity/users/{id}/roles`

## Request

- Base URL: `https://api.connact-app.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.connact-app.com/api/identity/users/{id}/roles`
- Auth: OAuth 2
  - Authorization code: `https://api.connact-app.com/connect/authorize`
  - Token URL: `https://api.connact-app.com/connect/token`
- TypeScript: <https://skmtc.dev/connact-app/apis/connact-api-24507495749-master/docs/api/identity/users/:id/roles/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, uuid, required

## Request body

- VoloAbpIdentityIdentityUserUpdateRolesDto
  - `roleNames` string[], required

## Response `200`

Success

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Server Error
- `501`: Server Error

---

[API](https://skmtc.dev/connact-app/apis/connact-api-24507495749-master.md) - [All operations](https://skmtc.dev/connact-app/apis/connact-api-24507495749-master/llms.txt) - [OpenAPI document](https://skmtc.dev/connact-app/apis/connact-api-24507495749-master/revisions/b286d2cf34db?raw)
