Assign a Role to a User

POST {{baseUrl}}/api/v1/users/:userId/roles

Assigns a role to a user identified by userId

Request Params

KeyDatatypeRequiredDescription
disableNotificationsbooleanSetting this to true grants the user third-party admin status

Request Body

{"type"=>"REPORT_ADMIN"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{"assignmentType":"GROUP","created":"2002-08-12T05:00:43.723Z","description":"consequat ex","id":"sunt","label":"ullamco elit incididunt velit","lastUpdated":"2009-07-02T14:04:17.540Z","status":"INACTIVE","type":"HELP_DESK_ADMIN","_embedded":{"sunt14":{},"reprehenderit_70":{},"cupidatat_24":{}},"_links":{"consequat6d":{}}}