C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
using System.Collections.Generic;
public partial class Examples
{
public async Task Example() {
var client = new ManagementApiClient(
token: "<token>",
clientOptions: new ClientOptions { BaseUrl = "https://{YOUR_DOMAIN}/api/v2" }
);
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/v2/management/client"
option "github.com/auth0/go-auth0/v2/management/option"
)
func do() {
mgmt, err := client.New(
"{YOUR_DOMAIN}",
option.WithToken(
"<token>",
),
)
if err != nil {
return
}
request := map[string]any{
"key": "value",
}
mgmt.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()
.domain("{YOUR_DOMAIN}")
.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\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->branding->phone->templates->reset(
'id',
[
'key' => "value",
],
);from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.branding.phone.templates.reset(
id="id",
request={"key": "value"},
)require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.branding.phone.templates.reset(id: "id")import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.branding.phone.templates.reset("id", {
key: "value",
});
}
main();import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
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 ManagementApiClient(
token: "<token>",
clientOptions: new ClientOptions { BaseUrl = "https://{YOUR_DOMAIN}/api/v2" }
);
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/v2/management/client"
option "github.com/auth0/go-auth0/v2/management/option"
)
func do() {
mgmt, err := client.New(
"{YOUR_DOMAIN}",
option.WithToken(
"<token>",
),
)
if err != nil {
return
}
request := map[string]any{
"key": "value",
}
mgmt.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()
.domain("{YOUR_DOMAIN}")
.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\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->branding->phone->templates->reset(
'id',
[
'key' => "value",
],
);from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.branding.phone.templates.reset(
id="id",
request={"key": "value"},
)require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.branding.phone.templates.reset(id: "id")import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.branding.phone.templates.reset("id", {
key: "value",
});
}
main();import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
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>"
}承認
bearerAuthoAuth2ClientCredentials
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
パスパラメータ
Required string length:
1 - 255ボディ
application/jsonapplication/x-www-form-urlencoded
The body is of type any.
レスポンス
The phone notification template was reset.
Show child attributes
Show child attributes
利用可能なオプション:
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 - 255⌘I