core_groups_update
PUT/api/v3//core/groups/:group_uuid/
Group Viewset
Request
Path Parameters
group_uuid uuidrequired
A UUID string identifying this Group.
- application/json
Body
required
name stringrequired
Possible values: non-empty
and <= 80 characters
is_superuser boolean
Users added to this group will be superusers.
parent uuidnullable
users integer[]
attributes
object
roles uuid[]
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
pk uuidrequired
num_pk integerrequired
name stringrequired
Possible values: <= 80 characters
is_superuser boolean
Users added to this group will be superusers.
parent uuidnullable
parent_name stringnullablerequired
users integer[]
users_obj
object[]
nullable
required
attributes
object
roles uuid[]
roles_obj
object[]
required
{
"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-09-27T14:26:18.074Z",
"email": "[email protected]",
"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
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (from schema)
Schema
detail stringrequired
code string
{
"detail": "string",
"code": "string"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X PUT '/api/v3/core/groups/:group_uuid/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "string",
"is_superuser": true,
"parent": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"users": [
0
],
"attributes": {},
"roles": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
]
}'