Add a role to the matching user.

POST {{baseUrl}}/app/rest/users/:userLocator/roles

Request Body

{"roleId"=>"<string>", "scope"=>"<string>", "href"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;roleId&quot;:&quot;\u003cstring\u003e&quot;,&quot;scope&quot;:&quot;\u003cstring\u003e&quot;,&quot;href&quot;:&quot;\u003cstring\u003e&quot;}