Change a user's role

PUT https://manage.kontent.ai/v2/projects/:environment_id/users/:user_identifier/roles

Change the user's role and their access to content based on the user's assignment to roles, collections, and languages.

Endpoint usage requirements:

Request Body

{"collection_groups"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;user_id&quot;:&quot;d94bc87a-c066-48a1-a910-4f991ccc1fb5&quot;,&quot;collection_groups&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}]}