Passer au contenu principal
PUT
/
guardian
/
factors
/
phone
/
message-types
TypeScript
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.guardian.factors.phone.setMessageTypes({
        messageTypes: [
            "sms",
        ],
    });
}
main();
{
  "message_types": [
    "sms"
  ]
}

Autorisations

Authorization
string
header
requis

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

Corps

message_types
enum<string>[]
requis

The list of phone factors to enable on the tenant. Can include sms and voice.

Options disponibles:
sms,
voice

Réponse

Returns selected SMS provider configuration

message_types
enum<string>[]

The list of phone factors to enable on the tenant. Can include sms and voice.

Options disponibles:
sms,
voice