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:
- Enterprise or Flex plan
- Personal API key with the Invite and manage project members permission
Request Body
{"collection_groups"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"user_id":"d94bc87a-c066-48a1-a910-4f991ccc1fb5","collection_groups":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]}