Files
authentik/website/docs/developer-docs/api/reference/authenticators-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-totp-update
title: "authenticators_totp_update"
description: "Viewset for totp authenticator devices"
sidebar_label: "authenticators_totp_update"
hide_title: true
hide_table_of_contents: true
api: eJzNVt9v2zYQ/lcEPm2Aa2VpMAx+WtYGg4F2DRK3L4URUOLZYk2RLEm58QT9770jJVuO3WwY8rAXgxSP9+P77j66ZcaC40EaPRdsxngTKtBBljwY5x+CCfahsYIHYBMmwJdOWjJG008SvnkI2cq4jOyyo7uZgK0sweM1yx2vIYDzbPa5ZZIuWx4qPNJ4gDspcO3LCmrOZi0LOxu/6gBrcKx7Gvk6a7T82kDWW2RbrmgnKPpqJ/U6C5X02eLD4jZ7G/OYYgAHXxvpAMsMroFuOWGBrymnJ1WzZbIFH/4wYkcZlQYj6UBLbq0iQ0wl/+Ipn/Y0dVN8gTKcQHYPTnIl/8aU/xk1R8wEiRv0m4Da+/fBYZVoVUv9DvQawZz98jTaooKsamquXzngghcKMnKTmVWCR+yRqfnj4OXXq64bQ/U5hSawZFAUm1BNoN4lkFh3fCWii3xC2TgZdpH0ocoN7pZdBNhbo32q7vLi4n+N8svgitE2Z9qbsODig1a7BN0B6flbdpaM6OgsI4mK43Rpfq5eFOBPiK6IV7Mb54w7xdHoh5UEJR6Azv3IJXeO7/CCDFD7U6wp/dKIMyzQCRdCUliubsfxugMUh9RSZj/E4/UL4vEnaGy5Mru+nf8AEAGBS3WmqOeqHfPeOxiR3gd9pkz8hLJbGdJ124SoxNSKLD/Wu5wmJG+l6HKSYXDbQaobp6K5lfn2dc5oboepvidsUnGj2d6XUYVgB02nfQHckZRjToTu3UFebx55bRUcxm+EjdQrE532NR8iTRglmSq9vLi8mv42vTzh5T3f0FswqpZa1kuKR+NJ9PMy0o88Ez+sAqXM72uzjzSVhjLB3gBUq1GW7+cLdJEQomr9LM/XMlRNMS1NnY9c5IdVoUyRYyidv5u/ufnr/iYiYo0PKCcj58cEJQk7/wyPmvjfv8g9SQEeQ24VpkMlxlLavkdO3kS8ZCKls/hYUydWmDZZtm3BPXx0quvoMzLrSPRxueWoxAVRh80kpKc1duOKKw/P1PHTXd/5P2f/8ak/W+CgQJr0J/qhMZmwDezSf5BuiVYVijF2KmWcDt6kvF4t6Prh4olgdJPhxnVZgg3P2i5Hs3n7kTqp6P9q1FEPmOPf6GXA35ijiTDFcYvfWqa4Xjd8TbbJZRTIhsjbT2E/dZNhQUWdRQEpjBYLswGNNA6gBNoTLl33HcSbhnE=
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_totp_update"}
>
</Heading>
<MethodEndpoint
method={"put"}
path={"/authenticators/totp/{id}/"}
>
</MethodEndpoint>
Viewset for totp authenticator devices
<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>