user

PATCH /api/user/2fa/methods/{method}

Changed on

Rename or remove one app or key.

Removing the last one turns two-factor off and deletes the recovery codes.

Request

  • The document declares no server URL.
  • Auth
    • API key in header Authorization
    • or API key in cookie sessionid

Path parameters

methodstring required

Request body

namestring

Response

idstring required

totp-<n> or webauthn-<n>

kind'totp' | 'webauthn' required
  • totp - totp
  • webauthn - webauthn
namestring required
passkeyboolean nullable required

A key that can log in on its own. Null when the browser did not say.

createdAtstring date-time nullable required
lastUsedAtstring date-time nullable required

Changes