Add role assignment

POST {{baseUrl}}/roles/:id/assignments

Assigns a user to a role.

Request Body

{"user_id"=>"<integer>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;success&quot;:true,&quot;data&quot;:{&quot;user_id&quot;:1234567,&quot;role_id&quot;:2}}