core_groups_create
POST/core/groups/
Group Viewset
Request
- application/json
Body
required
name stringrequired
Possible values: non-empty
is_superuser boolean
Users added to this group will be superusers.
parent uuidnullable
users integer[]
attributes
object
property name* any
roles uuid[]
Responses
- 201
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
]
pk uuidrequired
num_pk integerrequired
name stringrequired
is_superuser boolean
Users added to this group will be superusers.
parent uuidnullable
parent_name stringnullablerequired
users integer[]
users_obj
object[]
nullable
required
pk ID (integer)required
username stringrequired
Possible values: <= 150 characters
, Value must match regular expression ^[\w.@+-]+$
Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
name stringrequired
User's display name.
is_active Active (boolean)
Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
last_login date-timenullable
email email
Possible values: <= 254 characters
attributes
object
property name* any
uid stringrequired
attributes
object
property name* any
roles uuid[]
roles_obj
object[]
required
pk uuidrequired
name stringrequired
Possible values: <= 150 characters
{
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"num_pk": 0,
"name": "string",
"is_superuser": true,
"parent": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"parent_name": "string",
"users": [
0
],
"users_obj": [
{
"pk": 0,
"username": "string",
"name": "string",
"is_active": true,
"last_login": "2024-07-29T15:51:28.071Z",
"email": "user@example.com",
"attributes": {},
"uid": "string"
}
],
"attributes": {},
"roles": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"roles_obj": [
{
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "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...