Files
authentik/website/docs/developer-docs/api/reference/authenticators-admin-webauthn-create.api.mdx
2024-09-13 12:17:54 -05:00

453 lines
16 KiB
Plaintext

---
id: authenticators-admin-webauthn-create
title: "authenticators_admin_webauthn_create"
description: "Viewset for WebAuthn authenticator devices (for admins)"
sidebar_label: "authenticators_admin_webauthn_create"
hide_title: true
hide_table_of_contents: true
api: eJzNVktv2zgQ/isCT1tAtZy0h8KnTdtgYaDdBE2aHorAGEkTmTVFqiTlxGvov+8MJUeSHRsFtoe9JKQ8j2++eXErTIUWvDR6nouZgNovUXuZgTfWLSAvpV48Ysrf9SKzCB5FLHJ0mZUVq5HSncRHhz56MDb6hukFy0YjS1GOa5mhi/5gmWDVvSI7HgonZt/33Ir7WFj8WaPz702+EbOtyIz2JMBHqCrFguQ7+eEYwFa4bIkl8MlvKiRIJv2BmT9AeoNWgpL/oP0FsKRdWabHS7qQbQ0lDnw4b6UuSIqi+YS68EsxO6MbPO1u59Np07SxSIs5RxpsUHxeesVGdhA+Bp9f2qhFM1bztkb64DCrrfREyPftM2Urut03gTFXGe1aqOfTs/8NbdVq4EESoAKtYLyQX2m1acPrGZl/FBTrUa7H7Maircl80Ua0L05wS6D4RU5Cr70s8cBzw9Ey8kWrTFQpdfUQSD5Nyzh3tyQb9Uwd0ABQ1DI/CbJmgWbPzb78fkV1dsdaRyuMUYq2XMb061opSFmjI+U43j3+juEZZGZMcZfdmCvjKNC2B8aEMzdvp9PfWNl3lKw8qEaX1prDrGmjFw8SVb5A/t0NTIK1sCEF6bF0L+cpM/kLVcy/QJ5Ldgvqeuiv6enoobXIjvLx5jfy8RdqquAsurieHyEkRw9SvRDUqWiH9dEZGCS+c3oiTPpUol8aXlGVcYy7Ap4BIhmvjiTslmS3sRLBU9OukRNH/VxbFXQqmazfJKEPdkP1hhnqOrUfrc/BLL2v2FiQonuKYNEGZMzxl35dXT5BWSnsF8aAIakfTDDaRd57igWDbOM9n56/nbybnB1k5zOsyNBw7HLhOsn+JtxxVASQhSKgbHOWxBKVMn8W5tnTRBpGQhWCtCwGKD/Pb8lEyxBH62ZJUki/rNNJZspkYCLpT6kyaUKudPJp/uHy75vLwAinqAQ9MD7OUvsCiHZZil5+VwyK+r88Mdr8eXzySaUIKUcfotx2NXTw/ODuJHX6v0NIRy7YJZceyW+3KTj8alXT8GdKveWlTMc10PwPU5SWMinQpKQq4dJbIYmID21Er2/bObgGVQd69lu2iXcaF1mGlT8pez/ojuurG05j2r2bytCSwsIjz236S90U05uPtUOth29boUAXNRQs29oMM6pmep5boCv5eHcYLEjQmwFCoidI3JoVaqIo7kLxfCe4ZPxfDBGlZg==
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 Markdown from "@theme/Markdown";
import Heading from "@theme/Heading";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
<Heading
as={"h1"}
className={"openapi__heading"}
children={"authenticators_admin_webauthn_create"}
>
</Heading>
<MethodEndpoint
method={"post"}
path={"/authenticators/admin/webauthn/"}
>
</MethodEndpoint>
Viewset for WebAuthn 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 `<= 200 characters`"}
schema={{"type":"string","minLength":1,"maxLength":200}}
>
</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:** `<= 200 characters`"}
schema={{"type":"string","maxLength":200}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"created_on"}
required={true}
schemaName={"date-time"}
qualifierMessage={undefined}
schema={{"type":"string","format":"date-time","readOnly":true}}
>
</SchemaItem><SchemaItem
collapsible={true}
className={"schemaItem"}
>
<details
style={{}}
className={"openapi-markdown__details"}
>
<summary
style={{}}
>
<span
className={"openapi-schema__container"}
>
<strong
className={"openapi-schema__property"}
>
device_type
</strong><span
className={"openapi-schema__name"}
>
object
</span><span
className={"openapi-schema__divider"}
>
</span><span
className={"openapi-schema__nullable"}
>
nullable
</span><span
className={"openapi-schema__required"}
>
required
</span>
</span>
</summary><div
style={{"marginLeft":"1rem"}}
>
<div
style={{"marginTop":".5rem","marginBottom":".5rem"}}
>
WebAuthnDeviceType Serializer
</div><SchemaItem
collapsible={false}
name={"aaguid"}
required={true}
schemaName={"uuid"}
qualifierMessage={undefined}
schema={{"type":"string","format":"uuid"}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"description"}
required={true}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string"}}
>
</SchemaItem>
</div>
</details>
</SchemaItem><SchemaItem
collapsible={false}
name={"aaguid"}
required={true}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string","readOnly":true}}
>
</SchemaItem>
</ul>
</details>
</TabItem><TabItem
label={"Example (from schema)"}
value={"Example (from schema)"}
>
<ResponseSamples
responseExample={"{\n \"pk\": 0,\n \"name\": \"string\",\n \"created_on\": \"2024-09-13T14:05:42.077Z\",\n \"device_type\": {\n \"aaguid\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"description\": \"string\"\n },\n \"aaguid\": \"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>