Add, Update or Delete Permissions for a Role
post
/ic/api/process/v1/dp-roles/{id}/permissions
Add, update, or delete permissions for a role.
Request
Supported Media Types
- application/json
Path Parameters
-
id(required): string
Process role ID
Permissions change request list.
Nested Schema : ProcessRolePermissionsAction
Type:
Show Source
object
-
object:
object ProcessRolePermission
-
type:
string
Allowed Values:
[ "INSERT", "UPDATE", "DELETE" ]
Nested Schema : ProcessRolePermission
Type:
Show Source
object
-
actions:
array actions
List of actions
-
condition:
string
The condition when this permission will be activated
-
id:
string
The process role permission ID.
-
resources:
array resources
Nested Schema : actions
Type:
array
List of actions
Show Source
-
Array of:
string
Allowed Values:
[ "NONE", "ALL", "READ", "UPDATE", "CREATE", "ACCESS", "DOCUMENT_DOWNLOAD", "DOCUMENT_CONTRIBUTE" ]
Nested Schema : resources
Type:
Show Source
array
-
Array of:
object ProcessRoleResource
Process Role Resource
Nested Schema : ProcessRoleResource
Type:
object
Process Role Resource
Show Source
-
resourceId:
string
ID of resource
-
resourceType:
string
type of resource
-
subResourceId:
string
sub respurce ID
Response
Supported Media Types
- application/json
200 Response
Successful operation.
Root Schema : ProcessRolePermissions
Type:
object
Match All
Show Source
-
object
CommonModel
Discriminator:
links
-
object
ProcessRolePermissions-allOf[1]
Nested Schema : ProcessRolePermission
Type:
Show Source
object
-
actions:
array actions
List of actions
-
condition:
string
The condition when this permission will be activated
-
id:
string
The process role permission ID.
-
resources:
array resources
Nested Schema : actions
Type:
array
List of actions
Show Source
-
Array of:
string
Allowed Values:
[ "NONE", "ALL", "READ", "UPDATE", "CREATE", "ACCESS", "DOCUMENT_DOWNLOAD", "DOCUMENT_CONTRIBUTE" ]
Nested Schema : resources
Type:
Show Source
array
-
Array of:
object ProcessRoleResource
Process Role Resource
Nested Schema : ProcessRoleResource
Type:
object
Process Role Resource
Show Source
-
resourceId:
string
ID of resource
-
resourceType:
string
type of resource
-
subResourceId:
string
sub respurce ID
401 Response
Unauthorized.
403 Response
The user does not have permission to change dynamic process role permissions.
404 Response
Role or permission to be updated/deleted not found.
500 Response
Internal Server Error.