v1

latestOpenAPI 3.1.02026-08-066984441.1 MB
roles

Creates, updates or deletes a permission of the specified role.

Creates, updates or deletes a permission of the role. If the permission already exist, and the 'AccessLevels' property of the model is not empty, the permission will be updated. If the 'AccessLevels' property of the model is empty, the permission will be deleted. The permission will be created if it does not exist.

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

post/roles/{roleId}/permissions

Path parameters

roleIdstring uuid required

The id of the role.

Headers

Authorizationstring required

Bearer authentication

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.