core_users_service_account_create
POST/core/users/service_account/
Create a new user account that is marked as a service account
Request
- application/json
Body
required
name stringrequired
Possible values: non-empty
create_group boolean
expiring boolean
Default value: true
expires date-time
If not provided, valid for 360 days
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
username stringrequired
token stringrequired
user_uid stringrequired
user_pk integerrequired
group_pk string
{
"username": "string",
"token": "string",
"user_uid": "string",
"user_pk": 0,
"group_pk": "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...