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

import (
    context "context"

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

func do() {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    request := &factors.SetGuardianFactorPhoneMessageTypesRequestContent{
        MessageTypes: []management.GuardianFactorPhoneFactorMessageTypeEnum{
            management.GuardianFactorPhoneFactorMessageTypeEnumSms,
        },
    }
    client.Guardian.Factors.Phone.SetMessageTypes(
        context.TODO(),
        request,
    )
}
{
  "message_types": [
    "sms"
  ]
}

承認

Authorization
string
header
必須

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

ボディ

message_types
enum<string>[]
必須

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

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

レスポンス

Returns selected SMS provider configuration

message_types
enum<string>[]

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

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