C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
using System.Collections.Generic;
public partial class Examples
{
public async Task Example() {
var client = new ManagementClient(
token: "<token>"
);
await client.Branding.Phone.Templates.ResetAsync(
id: "id",
request: new Dictionary<string, object>()
{
["key"] = "value",
}
);
}
}
package example
import (
context "context"
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 := map[string]any{
"key": "value",
}
client.Branding.Phone.Templates.Reset(
context.TODO(),
"id",
request,
)
}
package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.types.ResetPhoneTemplateRequestContent;
import java.util.HashMap;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.token("<token>")
.build();
client.branding().phone().templates().reset(
"id",
ResetPhoneTemplateRequestContent.of(new
HashMap<String, Object>() {{put("key", "value");
}})
);
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Management;
$client = new Management(
token: '<token>',
);
$client->branding->phone->templates->reset(
'id',
[
'key' => "value",
],
);
from auth0.management import ManagementClient
client = ManagementClient(
token="<token>",
)
client.branding.phone.templates.reset(
id="id",
request={"key": "value"},
)
require "auth0"
client = Auth0::Management.new(token: "<token>")
client.branding.phone.templates.reset(id: "id")
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.branding.phone.templates.reset("id", {
key: "value",
});
}
main();
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.branding.phone.templates.reset("id", {
key: "value",
});
}
main();
curl --request PATCH \
--url https://{tenantDomain}/api/v2/branding/phone/templates/{id}/reset \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json'{
"content": {
"syntax": "<string>",
"from": "<string>",
"body": {
"text": "<string>",
"voice": "<string>"
}
},
"disabled": false,
"id": "<string>",
"channel": "<string>",
"customizable": true,
"tenant": "<string>"
}Resets a phone notification template values
PATCH
https://{tenantDomain}/api/v2
/
branding
/
phone
/
templates
/
{id}
/
reset
C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
using System.Collections.Generic;
public partial class Examples
{
public async Task Example() {
var client = new ManagementClient(
token: "<token>"
);
await client.Branding.Phone.Templates.ResetAsync(
id: "id",
request: new Dictionary<string, object>()
{
["key"] = "value",
}
);
}
}
package example
import (
context "context"
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 := map[string]any{
"key": "value",
}
client.Branding.Phone.Templates.Reset(
context.TODO(),
"id",
request,
)
}
package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.types.ResetPhoneTemplateRequestContent;
import java.util.HashMap;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.token("<token>")
.build();
client.branding().phone().templates().reset(
"id",
ResetPhoneTemplateRequestContent.of(new
HashMap<String, Object>() {{put("key", "value");
}})
);
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Management;
$client = new Management(
token: '<token>',
);
$client->branding->phone->templates->reset(
'id',
[
'key' => "value",
],
);
from auth0.management import ManagementClient
client = ManagementClient(
token="<token>",
)
client.branding.phone.templates.reset(
id="id",
request={"key": "value"},
)
require "auth0"
client = Auth0::Management.new(token: "<token>")
client.branding.phone.templates.reset(id: "id")
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.branding.phone.templates.reset("id", {
key: "value",
});
}
main();
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.branding.phone.templates.reset("id", {
key: "value",
});
}
main();
curl --request PATCH \
--url https://{tenantDomain}/api/v2/branding/phone/templates/{id}/reset \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json'{
"content": {
"syntax": "<string>",
"from": "<string>",
"body": {
"text": "<string>",
"voice": "<string>"
}
},
"disabled": false,
"id": "<string>",
"channel": "<string>",
"customizable": true,
"tenant": "<string>"
}Authorizations
bearerAuthoAuth2ClientCredentials
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Required string length:
1 - 255Body
application/jsonapplication/x-www-form-urlencoded
The body is of type any.
Response
The phone notification template was reset.
Show child attributes
Show child attributes
Available options:
otp_verify, otp_enroll, change_password, blocked_account, password_breach Maximum string length:
255Whether the template is enabled (false) or disabled (true).
Required string length:
1 - 255Required string length:
1 - 255Update a phone notification template
Previous
Send a test phone notification for the configured template
Next
⌘I