roles

Updates permissions for a role.

Changed on

Updates permissions for a role. The submitted permission is added, changed, or removed for the role.

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

post/roles/{roleId}/permissions

Request

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

Path parameters

roleIdstring uuid required

The id of the role.

Request body

featurestring nullable

The feature these permissions belong to.

accessLevelsstring[] nullable

The access levels applied to this feature.

Response

OK

featurestring nullable

The feature these permissions belong to.

accessLevelsstring[] nullable

The access levels applied to this feature.

idstring uuid

The id of the permission.

createdOnstring date-time

The date this entity was created.

updatedOnstring date-time

The date this entity was last modified.

Changes

    • warning

      deleted the header request parameter Authorization

    • info

      the endpoint scheme security oauth2 was added to the API

    • info

      api operation id PostRolePermissionsByRoleId removed and replaced with roles_PostRolePermissionsByRoleId