Create a permission​
This endpoint can create permissions for Lifecycle, Consolidation, and Collaboration
application/json
Request Body required
permission object
role_id uuid
The id of the 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
, 1
, 2
, 3
, 4
, 5
, 6
, 7
, 8
, 9
, 10
, 11
, 12
, 13
, 14
, 15
, 16
, 17
, 18
, 19
, 20
, 21
, 22
, 23
]
The type of permission
Responses
- 200
- 400
- 500
Expected response to a valid request
application/json
Schema
Example (from schema)
Schema
permission object
role_id uuid
The id of the 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
{
"permission": {
"id": "2e06b876-f456-473d-bd65-b6435e0b6b2d",
"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
oneOf
InvalidJson
ValidationErrors
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...