Passer au contenu principal
PUT
/
guardian
/
factors
/
sms
/
templates
TypeScript
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.guardian.factors.sms.setTemplates({
        enrollmentMessage: "enrollment_message",
        verificationMessage: "verification_message",
    });
}
main();
{
  "enrollment_message": "{{code}} is your verification code for {{tenant.friendly_name}}. Please enter this code to verify your enrollment.",
  "verification_message": "{{code}} is your verification code for {{tenant.friendly_name}}"
}

Autorisations

Authorization
string
header
requis

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

Corps

enrollment_message
string
défaut:{{code}} is your verification code for {{tenant.friendly_name}}. Please enter this code to verify your enrollment.
requis

Message sent to the user when they are invited to enroll with a phone number.

verification_message
string
défaut:{{code}} is your verification code for {{tenant.friendly_name}}
requis

Message sent to the user when they are prompted to verify their account.

Réponse

SMS enrollment and verification templates successfully updated.

enrollment_message
string
défaut:{{code}} is your verification code for {{tenant.friendly_name}}. Please enter this code to verify your enrollment.
requis

Message sent to the user when they are invited to enroll with a phone number.

verification_message
string
défaut:{{code}} is your verification code for {{tenant.friendly_name}}
requis

Message sent to the user when they are prompted to verify their account.