Account

Two-factor sign-in

Turns two-factor sign-in on or off. Every other device is signed out so it must sign in again under the new setting; the calling device stays signed in. Closed to guests.

put/api/v2/account/two-factor

Request

  • Base URL: https://www.endlesstravelplans.com
  • URL: https://www.endlesstravelplans.com/api/v2/account/two-factor
  • Auth: HTTP bearer

Request body

enabledboolean required

Example request

{
  "enabled": true
}

Response

the account block, as GET /account

Example response

{
  "user": {
    "id": 12,
    "two_factor_enabled": true
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.