Moves a user from their current role to another role.

POST

Moves a user from their current role to another role. At least one user needs to remain in the admin role.

Required Permissions: The user must be an admin or have workspace-manage-config:write permissions.

Request

This endpoint expects an object.
userIdstringOptional

The id of the user to be moved to another role.

toRoleIdstringOptional

The id of the role the user should be moved to.