---
title: "Add a role to a user"
method: POST
path: "/user/{id}/role"
tags: ["User"]
---

# Add a role to a user

`POST /user/{id}/role`

## Request

- Base URL: `https://api.insided.com`
- URL: `https://api.insided.com/user/{id}/role`
- Auth: OAuth 2 (client credentials, token URL `/oauth2/token`)

Adds a role to an existing user

## Path parameters

- `id` string, required

## Request body

- object
  - `data` string[]

## Response `200`

Role has been added to the user. Text containing ‘Done'

## Other responses

- `404`: Not Found
- `500`: Unexpected error

---

[API](https://skmtc.dev/insided/apis/user-api.md) · [All operations](https://skmtc.dev/insided/apis/user-api/llms.txt) · [OpenAPI document](https://skmtc.dev/insided/apis/user-api/revisions/d5cbe609c9e7?raw)
