メインコンテンツへスキップ
PUT
https://{tenantDomain}/api/v2
/
guardian
/
factors
/
phone
/
templates
Go
package example

import (
    client "github.com/auth0/go-auth0/management/client"
    option "github.com/auth0/go-auth0/management/option"
    context "context"
    factors "github.com/auth0/go-auth0/management/guardian/factors"
)

func do() () {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    client.Guardian.Factors.Phone.SetTemplates(
        context.TODO(),
        &factors.SetGuardianFactorPhoneTemplatesRequestContent{
            EnrollmentMessage: "enrollment_message",
            VerificationMessage: "verification_message",
        },
    )
}
{
  "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}}"
}

承認

Authorization
string
header
必須

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

ボディ

enrollment_message
string
デフォルト:{{code}} is your verification code for {{tenant.friendly_name}}. Please enter this code to verify your enrollment.
必須

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

verification_message
string
デフォルト:{{code}} is your verification code for {{tenant.friendly_name}}
必須

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

レスポンス

Phone enrollment and verification templates successfully updated.

enrollment_message
string
デフォルト:{{code}} is your verification code for {{tenant.friendly_name}}. Please enter this code to verify your enrollment.
必須

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

verification_message
string
デフォルト:{{code}} is your verification code for {{tenant.friendly_name}}
必須

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