Passer au contenu principal
PATCH
https://{tenantDomain}/api/v2
/
branding
/
phone
/
templates
/
{id}
Go
package example

import (
    context "context"

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

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

Autorisations

Authorization
string
header
requis

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

Paramètres de chemin

id
string
requis
Required string length: 1 - 255

Corps

content
object
disabled
boolean
défaut:false

Indique si le modèle est activé (false) ou désactivé (true).

Réponse

Le modèle de notification par téléphone a été mis à jour.

content
object
requis
disabled
boolean
défaut:false
requis

Indique si le modèle est activé (false) ou désactivé (true).

id
string
requis
Required string length: 1 - 255
type
enum<string>
requis
Options disponibles:
otp_verify,
otp_enroll,
change_password,
blocked_account,
password_breach
Maximum string length: 255
channel
string
customizable
boolean
tenant
string
Required string length: 1 - 255