EntityPermissions
EntityPermissions
are a layer of permissions directly applied on user generated contents and are one core part of the intratool permission handling.
To read more about the concept of EntityPermissions
, head to the introduction section about them.
Model Definition
Structure
key
The permission key.
view
permission_entity
Model (alias) to grant the permission key for.
user
or department
permission_entity_id
The id
of the Model to grant the permission key for.
25
target_entity
Target Model (alias) to grant the permission key for.
taskAssignment
target_entity_id
The id
of the target Model to grant the permission key for.
10
Relations
permissionEntity
Permission Entity
Morph to
permission_entity, permission_entity_id
targetEntity
Target Entity
Morph to
target_entity, target_entity_id
List by target entity
Get a list of EntityPermissions
for given target entity.
Definition
GET
/api/entity-permissions/{targetEntity}/{targetEntityId}
Example Request
Example Response Body
Show
Show a single EntityPermission
by id
.
Definition
GET
/api/entity-permissions/{id}
Example Request
Example Response
Create or update
Create a new EntityPermission
. When a EntityPermission
with the given data already exits, the updated_at
timestamp will be updated.
Definition
POST
/api/entity-permissions
Request Keys
key
*
string
-
The permission key.
permission_entity
*
string
-
Model (alias) to grant the permission key for.
permission_entity_id
*
integer
-
The id
of the Model to grant the permission key for.
target_entity
*
string
-
Target Model (alias) to grant the permission key for.
target_entity_id
*
integer
-
The id
of the target Model to grant the permission key for.
Keys with *
are required.
Example Request
Example Response Body
Delete
Delete an existing EntityPermission
by id
.
Definition
DELETE
/api/entity-permissions/{id}
Example Request
Example Response
Last updated