Files
authentik/website/docs/developer-docs/api/reference/authenticators-admin-duo-create.api.mdx
Tana M Berry 7a6d44d0df first pass
2024-10-22 15:10:13 -05:00

366 lines
12 KiB
Plaintext

---
id: authenticators-admin-duo-create
title: "authenticators_admin_duo_create"
description: "Viewset for Duo authenticator devices (for admins)"
sidebar_label: "authenticators_admin_duo_create"
hide_title: true
hide_table_of_contents: true
api: eJzNVt9v2jAQ/lciP21SSiitpomndS2akNq1KqwvVYWc5EhcHDuzHVqG+N935wQIhfIwbdJekJPcj+++7+7MkukSDHdCq2HK+oxXLgflRMKdNnbC00KoSVrpSWKAO2AhS8EmRpTkgfYPAl4suGCqTXBV6WDHP0hhLhKwwQf67GPZjxjC8cyy/uObZOwpZAZ+VmDdV50uWH/JEq0cGtCRl6UkQ0wbPVvKvWQ2yaHgdHKLEhCNjp8hcXsgR2AEl+IXmOM40bE0xIcT+IBhFS+gFd46I1SGVljINajM5ax/+jbZOIcgrwquTpCxlMcSAgoT6GngcmGbXB2Kwl/XUT6dr1Z19cJAStz41MiIE05SbgR95T3va4rYatfDmQrwhYWkMsIhe4/LDb8zfHpaeXptqZWti+t1T/8HjstZK7hALBkYRlB5eqvkoq5sy8PwimGZ7wnz76QICeghPWohdhMTxPNu9y/S+4Dcpt41GBijzX6rajWZCpDpBOi7bYXkxvAFOggHhd1njeAnOj3AJ33haSooLZd37XyrLRNbaDWyd/k4+4t8fAOFDZcEF3fDdwhJwXEhDxR1rNq27E2AluZN0iNl4qsCXK5plZbaEu6SU1exaHfZRX4bRrhZI0ZTa+ZAmuHQVkZ681JE87OI0diuh3pE5NTVtUZ7U0fuXEnBvBU+x8ANGA+K6L3f7tbBKy9KCdsV1yJHqKn2QZuit5lCRiDrUnvd3nnnc6e3J8wNn2Gg9uxTz1pB+WjSSH+eeP1RaBKI5SCl/pLpTaaO0IQEmwNwWbVQ3gzHGKJmiKq1/SjKhMuruJPoImqFiLanWOo4wlQquh5eDr6PBp4RUgc3Qyv4rkD1dRWgQMHhq6/Vyn94C9aqOXh1USkRH9Xsa1s2TbN3Q9I4ojtBqTT+UnPm1GZoulzG3MIPI1creo1aG7oF8DjnuJpjEhNvAXTAXYhtQb02AzRhl3UdJ2MCROay8ny8Hc9VuPa4SBIo3VHbp9Yk3N2OSLe4udULP37M8Bfa8/iLkxPi/xDy9s3t3y2Z5CqreEa2dUy/jypiZtPzTY+H6wNVtV57atFCiPR4i7GegUKKwqYUR88IF4P/BrEEI+Q=
sidebar_class_name: "post api-method"
info_path: docs/developer-docs/api/reference/authentik
custom_edit_url: null
hide_send_button: true
---
import ApiTabs from "@theme/ApiTabs";
import DiscriminatorTabs from "@theme/DiscriminatorTabs";
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import SecuritySchemes from "@theme/ApiExplorer/SecuritySchemes";
import MimeTabs from "@theme/MimeTabs";
import ParamsItem from "@theme/ParamsItem";
import ResponseSamples from "@theme/ResponseSamples";
import SchemaItem from "@theme/SchemaItem";
import SchemaTabs from "@theme/SchemaTabs";
import Heading from "@theme/Heading";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
<Heading
as={"h1"}
className={"openapi__heading"}
children={"authenticators_admin_duo_create"}
>
</Heading>
<MethodEndpoint
method={"post"}
path={"/authenticators/admin/duo/"}
>
</MethodEndpoint>
Viewset for Duo authenticator devices (for admins)
<Heading
id={"request"}
as={"h2"}
className={"openapi-tabs__heading"}
children={"Request"}
>
</Heading>
<MimeTabs
className={"openapi-tabs__mime"}
>
<TabItem
label={"application/json"}
value={"application/json-schema"}
>
<details
style={{}}
className={"openapi-markdown__details mime"}
data-collapsed={false}
open={true}
>
<summary
style={{}}
className={"openapi-markdown__details-summary-mime"}
>
<h3
className={"openapi-markdown__details-summary-header-body"}
>
Body
</h3><strong
className={"openapi-schema__required"}
>
required
</strong>
</summary><div
style={{"textAlign":"left","marginLeft":"1rem"}}
>
</div><ul
style={{"marginLeft":"1rem"}}
>
<SchemaItem
collapsible={false}
name={"name"}
required={true}
schemaName={"string"}
qualifierMessage={"**Possible values:** `non-empty` and `<= 64 characters`"}
schema={{"type":"string","minLength":1,"description":"The human-readable name of this device.","maxLength":64}}
>
</SchemaItem>
</ul>
</details>
</TabItem>
</MimeTabs><div>
<div>
<ApiTabs
label={undefined}
id={undefined}
>
<TabItem
label={"201"}
value={"201"}
>
<div>
</div><div>
<MimeTabs
className={"openapi-tabs__mime"}
schemaType={"response"}
>
<TabItem
label={"application/json"}
value={"application/json"}
>
<SchemaTabs
className={"openapi-tabs__schema"}
>
<TabItem
label={"Schema"}
value={"Schema"}
>
<details
style={{}}
className={"openapi-markdown__details response"}
data-collapsed={false}
open={true}
>
<summary
style={{}}
className={"openapi-markdown__details-summary-response"}
>
<strong>
Schema
</strong>
</summary><div
style={{"textAlign":"left","marginLeft":"1rem"}}
>
</div><ul
style={{"marginLeft":"1rem"}}
>
<SchemaItem
collapsible={false}
name={"pk"}
required={true}
schemaName={"ID (integer)"}
qualifierMessage={undefined}
schema={{"type":"integer","readOnly":true,"title":"ID"}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"name"}
required={true}
schemaName={"string"}
qualifierMessage={"**Possible values:** `<= 64 characters`"}
schema={{"type":"string","description":"The human-readable name of this device.","maxLength":64}}
>
</SchemaItem>
</ul>
</details>
</TabItem><TabItem
label={"Example (from schema)"}
value={"Example (from schema)"}
>
<ResponseSamples
responseExample={"{\n \"pk\": 0,\n \"name\": \"string\"\n}"}
language={"json"}
>
</ResponseSamples>
</TabItem>
</SchemaTabs>
</TabItem>
</MimeTabs>
</div>
</TabItem><TabItem
label={"400"}
value={"400"}
>
<div>
</div><div>
<MimeTabs
className={"openapi-tabs__mime"}
schemaType={"response"}
>
<TabItem
label={"application/json"}
value={"application/json"}
>
<SchemaTabs
className={"openapi-tabs__schema"}
>
<TabItem
label={"Schema"}
value={"Schema"}
>
<details
style={{}}
className={"openapi-markdown__details response"}
data-collapsed={false}
open={true}
>
<summary
style={{}}
className={"openapi-markdown__details-summary-response"}
>
<strong>
Schema
</strong>
</summary><div
style={{"textAlign":"left","marginLeft":"1rem"}}
>
</div><ul
style={{"marginLeft":"1rem"}}
>
<SchemaItem
collapsible={false}
name={"non_field_errors"}
required={false}
schemaName={"string[]"}
qualifierMessage={undefined}
schema={{"type":"array","items":{"type":"string"}}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"code"}
required={false}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string"}}
>
</SchemaItem><SchemaItem
name={"property name*"}
required={false}
schemaName={"any"}
qualifierMessage={undefined}
schema={{"type":"object","description":"Validation Error","properties":{"non_field_errors":{"type":"array","items":{"type":"string"}},"code":{"type":"string"}},"additionalProperties":{},"title":"ValidationError"}}
collapsible={false}
discriminator={false}
>
</SchemaItem>
</ul>
</details>
</TabItem><TabItem
label={"Example (from schema)"}
value={"Example (from schema)"}
>
<ResponseSamples
responseExample={"{\n \"non_field_errors\": [\n \"string\"\n ],\n \"code\": \"string\"\n}"}
language={"json"}
>
</ResponseSamples>
</TabItem>
</SchemaTabs>
</TabItem>
</MimeTabs>
</div>
</TabItem><TabItem
label={"403"}
value={"403"}
>
<div>
</div><div>
<MimeTabs
className={"openapi-tabs__mime"}
schemaType={"response"}
>
<TabItem
label={"application/json"}
value={"application/json"}
>
<SchemaTabs
className={"openapi-tabs__schema"}
>
<TabItem
label={"Schema"}
value={"Schema"}
>
<details
style={{}}
className={"openapi-markdown__details response"}
data-collapsed={false}
open={true}
>
<summary
style={{}}
className={"openapi-markdown__details-summary-response"}
>
<strong>
Schema
</strong>
</summary><div
style={{"textAlign":"left","marginLeft":"1rem"}}
>
</div><ul
style={{"marginLeft":"1rem"}}
>
<SchemaItem
collapsible={false}
name={"detail"}
required={true}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string"}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"code"}
required={false}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string"}}
>
</SchemaItem>
</ul>
</details>
</TabItem><TabItem
label={"Example (from schema)"}
value={"Example (from schema)"}
>
<ResponseSamples
responseExample={"{\n \"detail\": \"string\",\n \"code\": \"string\"\n}"}
language={"json"}
>
</ResponseSamples>
</TabItem>
</SchemaTabs>
</TabItem>
</MimeTabs>
</div>
</TabItem>
</ApiTabs>
</div>
</div>