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

import (
    client "github.com/auth0/go-auth0/management/client"
    option "github.com/auth0/go-auth0/management/option"
    context "context"
    phone "github.com/auth0/go-auth0/management/branding/phone"
)

func do() () {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    client.Branding.Phone.Templates.Update(
        context.TODO(),
        "id",
        &phone.UpdatePhoneTemplateRequestContent{},
    )
}
{
  "id": "<string>",
  "content": {
    "syntax": "<string>",
    "from": "<string>",
    "body": {
      "text": "<string>",
      "voice": "<string>"
    }
  },
  "type": "otp_verify",
  "disabled": false,
  "channel": "<string>",
  "customizable": true,
  "tenant": "<string>"
}

承認

Authorization
string
header
必須

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

パスパラメータ

id
string
必須
Required string length: 1 - 255

ボディ

content
object
disabled
boolean
デフォルト:false

Whether the template is enabled (false) or disabled (true).

レスポンス

The phone notification template was updated.

id
string
必須
Required string length: 1 - 255
content
object
必須
type
enum<string>
必須
利用可能なオプション:
otp_verify,
otp_enroll,
change_password,
blocked_account,
password_breach
Maximum string length: 255
disabled
boolean
デフォルト:false
必須

Whether the template is enabled (false) or disabled (true).

channel
string
customizable
boolean
tenant
string
Required string length: 1 - 255