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

390 lines
13 KiB
Plaintext

---
id: authenticators-admin-totp-update
title: "authenticators_admin_totp_update"
description: "Viewset for totp authenticator devices (for admins)"
sidebar_label: "authenticators_admin_totp_update"
hide_title: true
hide_table_of_contents: true
api: eJzNVsFu2zgQ/RWBpwZwrTQNFgufNm2DwkC7DRK3l8IwKHFssaZIlaTceAX9+86Qki3Hjg9FDr0YpMiZefNm5tENMxVY7qXRU8EmjNe+AO1lzr2xbsFFKfXCG18t6kpwD2zEBLjcyopM0OCbhF8OfLI0NqF7yYGHRMBG5uCSV3QevLkL9FFxy0vwYB2bfG+YJE8V9wUeaTzAnRS4dnkBJWeThvltFb5qDyuwrH0K4yaptfxZQ9LdSDZc0U4QlOVW6lXiC+mS2ZfZXfIhgBpjAAs/a2kBM/e2hnY+Yp6vCNMTItg83gXn3xmxJUS5wUja05JXlaKLCCX94QhPcwzdZD8g90f8PYCVXMn/EPJ5Cok1S8XyEjfoNxK18++8xSzxFnL8CfQKyZy8eRptVkBS1CXXry1wwTMFCblJzDLSI3bMlPyx9/LXddsOqfoeQxNZ0iuKTaxGUu8jSaw9NAnsYj0hr63021D0Pss17uZtINhVRruY3dXl5R/N8svwitHWJ9qbuODii1bbSN2e6ekHdrIYwdHJisRSHMKl+bl+UYK/IbsimCa31hp7zKPRi6UEJRZA527gklvLt2ggPZTumGuCnxtxogp0woWQFJaru2G8dk/FHlpE9iwfb1+Qj4+gseXy5OZu+gwhAjyX6kRS57Id1r1zMCh6F/RMmvgJZbcwJPVV7YMSUyuy9FDv0iDVKc1J2kjRpiTGYDe9YNdWBaNKppu3KaPp7Wf7gRiKKQ4mfJdM4X3VKzvtM+CWBB2REcf3e5G9feRlpWA/hAOGpF6a4LTLfB9pxAhkzPfq8up6/Pf46qg6n/maXoRBztS4TlI8GlJqAp6HJsBqU5VYAUqZf1ZmF2ksDSHBDgHUrAHKz9MZuogMUbZukqYr6Ys6G+emTAcu0v0qUyZLMZROP03f3/77cBsYqYzzKCoD54dlii9qlLPT7/OgoX/zqe7q5uHRp5VChJR1yK7pmufosaSpRHMyNqHak/CaU6sWmBFZNE3GHXy1qm3pMxbd0quAyw1Hqc6oqthnQjpaY7suuXJwJrlX991oXCS/+V/gZKK9RGkSqOCH5mjE1rCNf1LaOd4qUK2xiQlxPHgfcb2ekfne8EhR2lFvcZPnUPmzd+eD4b37Sk2Wdf9FyiAYzPJf9HTgb8BoAk1hEsO3himuVzVf0d3oMihoTUXcDWg3kKN+QUmdZAFLGG7MzBo0lrEnxdOeeGnb/wErG5hb
sidebar_class_name: "put 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_update"}
>
</Heading>
<MethodEndpoint
method={"put"}
path={"/authenticators/admin/totp/{id}/"}
>
</MethodEndpoint>
Viewset for totp authenticator devices (for admins)
<Heading
id={"request"}
as={"h2"}
className={"openapi-tabs__heading"}
children={"Request"}
>
</Heading>
<details
style={{"marginBottom":"1rem"}}
className={"openapi-markdown__details"}
data-collapsed={false}
open={true}
>
<summary
style={{}}
>
<h3
className={"openapi-markdown__details-summary-header-params"}
>
Path Parameters
</h3>
</summary><div>
<ul>
<ParamsItem
className={"paramsItem"}
param={{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this TOTP Device.","required":true}}
>
</ParamsItem>
</ul>
</div>
</details><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={"200"}
value={"200"}
>
<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>