Adds the user to the Role with the specified id.

POST

Adds the user to the Role with the specified id.

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

Path parameters

roleIdstringRequired
The id of the role.

Request

This endpoint expects an object.
userIdstringOptional
The id of the user to add to the role.