authenticators_admin_static_create
POST/authenticators/admin/static/
Viewset for static authenticator devices (for admins)
Request
- application/json
Body
required
name stringrequired
The human-readable name of this device.
Possible values: non-empty
and <= 64 characters
Responses
- 201
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
name stringrequired
The human-readable name of this device.
Possible values: <= 64 characters
token_set
object[]
required
token stringrequired
Possible values: <= 16 characters
pk ID (integer)required
{
"name": "string",
"token_set": [
{
"token": "string"
}
],
"pk": 0
}
- 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...