Create a system role permission
POST/system_role_permissions
This endpoint can create system role permissions for Lifecycle System Roles
Request
- application/json
Body
required
system_role_permission
object
system_role_id uuid
The id of the system role
subject_id uuid
The ID of the object that the permission is giving access to
value int32
Possible values: [1
, 2
, 3
, 4
, 5
, 6
, 7
]
The permissions level of access
subject int32
Possible values: [0
, 2
, 14
]
The type of permission
Responses
- 200
- 400
- 500
Expected response to a valid request
- application/json
- Schema
- Example (from schema)
Schema
system_role_permission
object
id uuid
The id of the system role permission
system_role_id uuid
The id of the system role
value int32
The permissions level of access
subject int32
The type of permission
subject_id uuid
The ID of the object that the permission is giving access to
{
"system_role_permission": {
"id": "2e06b876-f456-473d-bd65-b6435e0b6b2d",
"system_role_id": "ef5d413f-ba18-49e6-9a72-bb115aa133ff",
"value": 1,
"subject": 1,
"subject_id": "db3d85ef-c324-458b-b206-58debaa96419"
}
}
Bad Request - unable to complete.
- application/json
- Schema
- Example (from schema)
Schema
- InvalidJson
- ValidationErrors
oneOf
error
error
errors
{}
Internal Server Error - returned on unhandled exceptions.
- application/json
- Schema
- Example (from schema)
Schema
error
A message describing the error
{
"error": "Sorry something went wrong"
}
Loading...