メインコンテンツへスキップ
PUT
/
guardian
/
factors
/
{name}
TypeScript
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.guardian.factors.set("push-notification", {
        enabled: true,
    });
}
main();
{
  "enabled": true
}

承認

Authorization
string
header
必須

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

パスパラメータ

name
enum<string>
デフォルト:sms
必須

Factor name. Can be sms, push-notification, email, duo otp webauthn-roaming, webauthn-platform, or recovery-code.

利用可能なオプション:
push-notification,
sms,
email,
duo,
otp,
webauthn-roaming,
webauthn-platform,
recovery-code
Minimum string length: 1

ボディ

enabled
boolean
必須

Whether this factor is enabled (true) or disabled (false).

レスポンス

Factor updated successfully.

enabled
boolean
必須

Whether this factor is enabled (true) or disabled (false).