# Give a person a role

Assigns one person the role named in the URL. **A 201 carries no body** - read the
role's members afterwards if you need the resulting record.
A person may hold only one role per account. Naming someone who already holds one
is refused with a `400` and a message saying so, and the way to move them is to
remove the existing assignment first. A `400` is also what you get when `user_id`
is missing altogether.
The person has to belong to the same account as the role, and an administrator
cannot assign a role to themselves.

Endpoint: POST /api/v2/account/role/{role_id}/user
Version: 2.0.0
Security: default

## Path parameters:

  - `role_id` (integer, required)
    The ID of the role.

## Header parameters:

  - `Rosterfy-Platform` (string)

## Request fields (application/json):

  - `user_id` (integer, required)
    The person to give the role to.

## Response 400 fields (application/json):

  - `message` (string)

