rbac_permissions_roles_update
PUT/rbac/permissions/roles/:id/
Get a role's assigned object permissions
Request
Path Parameters
id integerrequired
A unique integer value identifying this group object permission.
- application/json
Body
required
object_pk stringrequired
Possible values: non-empty
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
id integerrequired
codename stringrequired
model Python model class name (string)required
app_label stringrequired
object_pk stringrequired
name stringrequired
app_label_verbose stringrequired
Get app label from permission's model
model_verbose stringrequired
Get model label from permission's model
object_description stringnullablerequired
Get model description from attached model. This operation takes at least one additional query, and the description is only shown if the user/role has the view_ permission on the object
{
"id": 0,
"codename": "string",
"model": "string",
"app_label": "string",
"object_pk": "string",
"name": "string",
"app_label_verbose": "string",
"model_verbose": "string",
"object_description": "string"
}
- application/json
- Schema
- Example (from schema)
Schema
non_field_errors string[]
code string
property name* any
Validation Error
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (from schema)
Schema
detail stringrequired
code string
{
"detail": "string",
"code": "string"
}
Loading...