Skip to content

Admin

Example User

{
"id": 1,
"password": "pbkdf2_sha256$120000$vkzUnKJwwaNl$95nqgBjqZ3/8Plk5soe2SjUPEF5fFNjBDfIapOXCy/Y=",
"last_login": "2019-09-12T01:45:05Z",
"is_superuser": true,
"username": "admin",
"first_name": "",
"last_name": "",
"email": "[email protected]",
"is_staff": true,
"is_active": true,
"date_joined": "2019-09-12T01:44:18Z",
"groups": [
1
],
"user_permissions": [
9,
10,
11,
12
]
}

This API can only be used by admin users.

FieldTypeDescription
idintUnique identifier
passwordstringPassword
last_loginstringLast login date and time
is_superuserboolIf user is superuser then true
usernamestringUser name
first_namestringUser first name
last_namestringUser last name
emailstringUser email
is_staffboolIf user is staff then true
is_activeboolIf user is active then true
date_joinedstringJoin date and time
groupsint[]List of groups to which the user belongs
user_permissionsint[]List of permissions to which the user has

POST /api/admin/users/

ParameterRequiredDefaultDescription
password*""Password
is_superuserfalseIf user is superuser then true
username""User name
first_name""User first name
last_name*""User last name
email""User email
is_stafffalseIf user is staff then true
is_activefalseIf user is active then true
groupsint[][]List of groups to which the user belongs
user_permissionsint[][]List of permissions to which the user has

PUT /api/admin/users/{id}/

Parameters are the same as above.

DELETE /api/admin/users/{id}/

GET /api/admin/users/{id}/

GET /api/admin/users/

ParameterRequiredDefaultDescription
email""User email

GET /api/admin/users/[email protected]

Retrieves projects that have a email of “[email protected]”.

Example Group

{
"id": 1,
"name": "Xyz",
"permissions": [
53,
54,
55,
56,
37,
38,
39,
40,
49,
50,
51,
52,
76
]
}

This API can only be used by admin users.

FieldTypeDescription
idintUnique identifier
namestringGroup name
permissionsint[]List of permissions to which the group belongs

POST /api/admin/groups/

ParameterRequiredDefaultDescription
name*""Group name
permissionsint[][]List of permissions to which the group belongs

PUT /api/admin/groups/{id}/

Parameters are the same as above.

DELETE /api/admin/groups/{id}/

GET /api/admin/groups/{id}/

GET /api/admin/groups/

ParameterRequiredDefaultDescription
name""Group name

GET /api/admin/groups/?name=Xyz

Retrieves projects that have a name of “Xyz”.