メインコンテンツへスキップ
PATCH
/
authentication-methods
/
{authentication_method_id}
TypeScript
import { MyAccountClient } from "github.com/auth0/myaccount-js";

async function main() {
    const client = new MyAccountClient({
        token: "<token>",
    });
    await client.authenticationMethods.update("authentication_method_id", {});
}
main();
{
  "id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "usage": [
    "primary"
  ],
  "type": "password",
  "identity_user_id": "<string>",
  "last_password_reset": "2023-11-07T05:31:56Z"
}

Release Lifecycle

Planned

Scopes

Scopes define permissions and access levels for API requests and authentication tokens.
update:me:authentication_methods

承認

Authorization
string
header
必須

Bearer and DPoP tokens are supported depending on the API configuration

パスパラメータ

authentication_method_id
string
必須

Authentication Method ID. This value is part of the Location header returned when creating an authentication method. It should be used as it is, without any modifications.

ボディ

application/json

Request content for updating an authentication method

name
string

The friendly name of the authentication method

preferred_authentication_method
enum<string>

The preferred authentication method (for phone authenticators)

利用可能なオプション:
sms,
voice

レスポンス

Successfully updated authentication method

id
string
必須

The unique identifier of the authentication method

created_at
string<date-time>
必須

The date and time when the authentication method was created

usage
enum<string>[]
必須

Primary and/or secondary factor

Usage type for authentication factors

利用可能なオプション:
primary,
secondary
type
string
デフォルト:password
必須

Authentication method type (factor)

Allowed value: "password"
identity_user_id
string
必須

The ID of the user identity linked with the authentication method

last_password_reset
string<date-time>

The date of the last password reset