Users
This class will define the view behavior
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
Number of results to return per page.
The initial index from which to return the results.
Which field to use when ordering the results.
A search term.
123http://api.example.org/accounts/?offset=400&limit=100http://api.example.org/accounts/?offset=200&limit=100GET /users/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"count": 123,
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100",
"results": [
{
"id": 1,
"username": "text",
"email": "name@gmail.com",
"first_name": "text",
"last_name": "text",
"is_superuser": true,
"groups": [
1
],
"group_assignments": "text",
"user_permissions": [
1
]
}
]
}Handle post request, suitable for single and multi creation
Args: request ([dict]): can be dict or list of dicts
Returns: [type]: [description]
Token-based authentication with required prefix "Token"
This serialize class provide the API representation
Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
^[\w.@+-]+$Designates that this user has all permissions without explicitly assigning them.
The groups this user belongs to. A user will get all permissions granted to each of their groups.
Specific permissions for this user.
This serialize class provide the API representation
Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
^[\w.@+-]+$Designates that this user has all permissions without explicitly assigning them.
The groups this user belongs to. A user will get all permissions granted to each of their groups.
Specific permissions for this user.
POST /users/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 157
"username='text'&email='name@gmail.com'&first_name='text'&last_name='text'&password='text'&is_superuser=true&groups=[1]&user_permissions=[1]"{
"id": 1,
"username": "text",
"email": "name@gmail.com",
"first_name": "text",
"last_name": "text",
"is_superuser": true,
"groups": [
1
],
"group_assignments": "text",
"user_permissions": [
1
]
}This class will define the view behavior
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this user.
This serialize class provide the API representation
Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
^[\w.@+-]+$Designates that this user has all permissions without explicitly assigning them.
The groups this user belongs to. A user will get all permissions granted to each of their groups.
Specific permissions for this user.
GET /users/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"id": 1,
"username": "text",
"email": "name@gmail.com",
"first_name": "text",
"last_name": "text",
"is_superuser": true,
"groups": [
1
],
"group_assignments": "text",
"user_permissions": [
1
]
}This class will define the view behavior
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this user.
This serialize class provide the API representation
Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
^[\w.@+-]+$Designates that this user has all permissions without explicitly assigning them.
The groups this user belongs to. A user will get all permissions granted to each of their groups.
Specific permissions for this user.
This serialize class provide the API representation
Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
^[\w.@+-]+$Designates that this user has all permissions without explicitly assigning them.
The groups this user belongs to. A user will get all permissions granted to each of their groups.
Specific permissions for this user.
PUT /users/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 157
"username='text'&email='name@gmail.com'&first_name='text'&last_name='text'&password='text'&is_superuser=true&groups=[1]&user_permissions=[1]"{
"id": 1,
"username": "text",
"email": "name@gmail.com",
"first_name": "text",
"last_name": "text",
"is_superuser": true,
"groups": [
1
],
"group_assignments": "text",
"user_permissions": [
1
]
}This class will define the view behavior
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this user.
No response body
No content
DELETE /users/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
No response body
No content
This class will define the view behavior
Args: viewsets ([OCSVIewSet])
Token-based authentication with required prefix "Token"
A unique integer value identifying this user.
This serialize class provide the API representation
Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
^[\w.@+-]+$Designates that this user has all permissions without explicitly assigning them.
The groups this user belongs to. A user will get all permissions granted to each of their groups.
Specific permissions for this user.
This serialize class provide the API representation
Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
^[\w.@+-]+$Designates that this user has all permissions without explicitly assigning them.
The groups this user belongs to. A user will get all permissions granted to each of their groups.
Specific permissions for this user.
PATCH /users/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 157
"username='text'&email='name@gmail.com'&first_name='text'&last_name='text'&password='text'&is_superuser=true&groups=[1]&user_permissions=[1]"{
"id": 1,
"username": "text",
"email": "name@gmail.com",
"first_name": "text",
"last_name": "text",
"is_superuser": true,
"groups": [
1
],
"group_assignments": "text",
"user_permissions": [
1
]
}Create or update one user group assignment and resync effective groups
Token-based authentication with required prefix "Token"
A unique integer value identifying this user.
This serialize class provide the API representation
Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
^[\w.@+-]+$Designates that this user has all permissions without explicitly assigning them.
The groups this user belongs to. A user will get all permissions granted to each of their groups.
Specific permissions for this user.
This serialize class provide the API representation
Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
^[\w.@+-]+$Designates that this user has all permissions without explicitly assigning them.
The groups this user belongs to. A user will get all permissions granted to each of their groups.
Specific permissions for this user.
POST /users/{id}/group-assignments/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 157
"username='text'&email='name@gmail.com'&first_name='text'&last_name='text'&password='text'&is_superuser=true&groups=[1]&user_permissions=[1]"{
"id": 1,
"username": "text",
"email": "name@gmail.com",
"first_name": "text",
"last_name": "text",
"is_superuser": true,
"groups": [
1
],
"group_assignments": "text",
"user_permissions": [
1
]
}Delete one user group assignment and resync effective groups
Token-based authentication with required prefix "Token"
A unique integer value identifying this user.
No response body
No content
DELETE /users/{id}/group-assignments/{assignment_id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
No response body
No content
Last updated

