rbac_permissions_retrieve
GET/api/v3//rbac/permissions/:id/
Read-only list of all permissions, filterable by model and app
Request
Path Parameters
id integerrequired
A unique integer value identifying this permission.
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (auto)
Schema
idintegerrequired
namestringrequired
Possible values: <= 255 characters
codenamestringrequired
Possible values: <= 100 characters
modelPython model class name (string)required
app_labelstringrequired
app_label_verbosestringrequired
Human-readable app label
model_verbosestringrequired
Human-readable model name
{
"id": 0,
"name": "string",
"codename": "string",
"model": "string",
"app_label": "string",
"app_label_verbose": "string",
"model_verbose": "string"
}
- application/json
- Schema
- Example (auto)
Schema
non_field_errorsstring[]
codestring
property name*any
Validation Error
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (auto)
Schema
detailstringrequired
codestring
{
"detail": "string",
"code": "string"
}
Authorization: http
name: authentiktype: httpscheme: bearer
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "/api/v3/rbac/permissions/:id/");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());