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

POST

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.

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

Path parameters

roleIdstringRequired

The id of the role.

Request

This endpoint expects an object.
featurestringOptional

The feature these permissions belong to.

accessLevelslist of stringsOptional

The access levels applied to this feature.

Response

OK

featurestringOptional

The feature these permissions belong to.

accessLevelslist of stringsOptional

The access levels applied to this feature.

idstringOptional

The id of the permission.

createdOndatetimeOptional

The date this entity was created.

updatedOndatetimeOptional

The date this entity was last modified.

subdomainslist of stringsOptional

The workspace’s subdomains. Read-only.

identityIdslist of stringsOptional

The ids of identities assigned to this workspace. Read-only.