roles

Adds the user to the role.

Changed on

Adds the user to the role. The user is added to the role membership.

<Check title="Required Permissions" icon="key">The user must be an admin or have workspace-manage-config:write permissions.</Check>

post/roles/{roleId}/adduser

Request

  • Base URL: https://api.awork.com/api/v1
  • URL: https://api.awork.com/api/v1/roles/{roleId}/adduser
  • Auth: HTTP bearer

Path parameters

roleIdstring uuid required

The id of the role.

Request body

userIdstring uuid required

The id of the user to add to the role.

Response

OK

RolesPostRoleAddUserByRoleIdResponse200 required

Empty response body

Changes

    • warning

      deleted the header request parameter Authorization

    • info

      the endpoint scheme security oauth2 was added to the API

    • info

      api operation id PostRoleAddUserByRoleId removed and replaced with roles_PostRoleAddUserByRoleId