Files
authentik/website/docs/developer-docs/api/reference/authenticators-admin-totp-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-totp-create
title: "authenticators_admin_totp_create"
description: "Viewset for totp authenticator devices (for admins)"
sidebar_label: "authenticators_admin_totp_create"
hide_title: true
hide_table_of_contents: true
api: eJzNVt9v2jAQ/lciP20SJZRW08TTuhZNSO2KButLVSEnORIXx85sh5ah/O+7cwKEQjtp6sNeUOLcfXffdz/MmukCDHdCq1HCBoyXLgPlRMydNnbGk1yomdOumMUGuAPWYQnY2IiCXNDhTsCTBRfMtQnILthDCBJYihhs8IG+ezT7ETEcTy0b3L8Ixx46zMCvEqz7qpMVG6xZrJVDA3rkRSHJEOOGj5aCr5mNM8g5PblVAZiOjh4hdgdZTsAILsVvMH9JFD0LQ5I4gS+Iq3gOLXzrjFApWiGTa1Cpy9jg9GW0aQZBVuZcnaBmCY8kBAQT6HngMmGbWF1C4c8blE/nVVXTFwYSEseHRkmccJJiT2+n4yvv+qMWiVX7Ls6UgAcW4tIIh/rdr7cKL/DtofIC20IrW7Pr907/a5XfR1eMtmihCySbgmGkBU9ulVzV0u2UHl2xo8XwQEcrUpdiP12GJ+e93jsKfIfqJt41GBqjzaGOWs3mAmQyA/puW5DcGL5CB+Egt4daU/qxTo5Ugb7wJBEUlstxO161k2KXWp3Zq3qcvaMe30Bhy8XBxXj0iiAJOC7kEVJvsW3XvQFoFb0J+gZNPMrBZZoWaqEt5V1w6kUW7i+80G/EkAYlZDS4ZglUNJzb0khvX4hweRYymtzNXE9InZpea7q3RDLnCgLzVvgeATdgfFak74/dgh0+87yQsBvAljpCzbUHbVjvInUYJVlz7ff6593P3f5BZW74AoHa009NawXFowGlBuCxbwCsNFWIZSCl/pLqbaSu0JQJdgfgvmpleTOaIkStELG1gzBMhcvKqBvrPGxBhLunSOooxFAqvB5dDr9Phl4RKg8ulBb4foXqO6teZcdvwFYz/+tlWNfNwbMLC4kZEmvPbt30zcFFSROJ7uSsfbWpQTNqNbRdryNu4aeRVUXHWG5DdwE+Ljku6IjqiXcBOuD6w86gdlsAmrDLmsnJlDIic1l6SV6OaNXZeFzEMRTuTduH1jSMbydUuqi53XM/gszwJ1rG+IvT08F/JOTt+9ufrZnkKi15SrY1pt9JJUmzbfumzTubB2K1WX1q1coQ5fEWU70AhRJ1GiqO3jFdBP8D78Momg==
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_totp_create"}
>
</Heading>
<MethodEndpoint
method={"post"}
path={"/authenticators/admin/totp/"}
>
</MethodEndpoint>
Viewset for totp 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={"name"}
required={true}
schemaName={"string"}
qualifierMessage={"**Possible values:** `<= 64 characters`"}
schema={{"type":"string","description":"The human-readable name of this device.","maxLength":64}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"pk"}
required={true}
schemaName={"ID (integer)"}
qualifierMessage={undefined}
schema={{"type":"integer","readOnly":true,"title":"ID"}}
>
</SchemaItem>
</ul>
</details>
</TabItem><TabItem
label={"Example (from schema)"}
value={"Example (from schema)"}
>
<ResponseSamples
responseExample={"{\n \"name\": \"string\",\n \"pk\": 0\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>