TypeScript
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.portals.update("id", {});
}
main();
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.portals.update("id", {});
}
main();
package example
import (
context "context"
management "github.com/auth0/go-auth0/v3/management"
client "github.com/auth0/go-auth0/v3/management/client"
option "github.com/auth0/go-auth0/v3/management/option"
)
func do() {
mgmt, err := client.New(
"{YOUR_DOMAIN}",
option.WithToken(
"<token>",
),
)
if err != nil {
return
}
request := &management.UpdatePortalRequestContent{}
mgmt.Portals.Update(
context.TODO(),
"id",
request,
)
}
# Ensure you're logged in: auth0 login
auth0 api patch "portals/id" --data '{}'using Auth0.ManagementApi;
using System.Threading.Tasks;
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.Portals.UpdateAsync(
id: "id",
request: new UpdatePortalRequestContent()
);
}
}
package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.types.UpdatePortalRequestContent;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.portals().update(
"id",
UpdatePortalRequestContent
.builder()
.build()
);
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
use Auth0\SDK\API\Management\Portals\Requests\UpdatePortalRequestContent;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->portals->update(
'id',
new UpdatePortalRequestContent([]),
);
from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.portals.update(
id="id",
)
require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.portals.update(id: "id")
curl --request PATCH \
--url https://{tenantDomain}/api/v2/portals/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"slug": "<string>",
"name": "<string>",
"navigation": {
"sidebar": {
"components": [
{
"type": "sidebar:component:auth0:external_link",
"config": {
"label": "<string>",
"url": "<string>",
"icon": "<string>"
}
}
]
}
},
"pages": {
"default": "<string>",
"standard": [
{
"title": "<string>",
"slug": "<string>",
"components": [
{
"type": "page:component:auth0:form",
"config": {
"form_id": "<string>",
"completion_message": "<string>"
}
}
]
}
]
},
"custom_code": {
"head": "<string>"
}
}
'{
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"navigation": {
"sidebar": {
"components": [
{
"type": "sidebar:component:auth0:external_link",
"config": {
"label": "<string>",
"url": "<string>",
"icon": "<string>"
}
}
]
}
},
"pages": {
"default": "<string>",
"standard": [
{
"title": "<string>",
"slug": "<string>",
"components": [
{
"type": "page:component:auth0:form",
"config": {
"form_id": "<string>",
"completion_message": "<string>"
}
}
]
}
]
},
"client": {
"token_endpoint_auth_method": "client_secret_post",
"client_id": "<string>"
},
"custom_code": {
"head": "<string>"
}
}{
"message": "<string>",
"statusCode": 400,
"error": "Bad Request"
}{
"message": "<string>",
"statusCode": 401,
"error": "Unauthorized"
}{
"message": "<string>",
"statusCode": 403,
"error": "Forbidden"
}{
"message": "<string>",
"statusCode": 404,
"error": "Not Found"
}{
"message": "<string>",
"statusCode": 409,
"error": "Conflict"
}{
"message": "<string>",
"statusCode": 429,
"error": "Too Many Requests"
}{
"message": "<string>",
"statusCode": 500,
"error": "Internal Server Error"
}Portal を更新
PATCH
https://{tenantDomain}/api/v2
/
portals
/
{id}
TypeScript
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.portals.update("id", {});
}
main();
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.portals.update("id", {});
}
main();
package example
import (
context "context"
management "github.com/auth0/go-auth0/v3/management"
client "github.com/auth0/go-auth0/v3/management/client"
option "github.com/auth0/go-auth0/v3/management/option"
)
func do() {
mgmt, err := client.New(
"{YOUR_DOMAIN}",
option.WithToken(
"<token>",
),
)
if err != nil {
return
}
request := &management.UpdatePortalRequestContent{}
mgmt.Portals.Update(
context.TODO(),
"id",
request,
)
}
# Ensure you're logged in: auth0 login
auth0 api patch "portals/id" --data '{}'using Auth0.ManagementApi;
using System.Threading.Tasks;
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.Portals.UpdateAsync(
id: "id",
request: new UpdatePortalRequestContent()
);
}
}
package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.types.UpdatePortalRequestContent;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.portals().update(
"id",
UpdatePortalRequestContent
.builder()
.build()
);
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
use Auth0\SDK\API\Management\Portals\Requests\UpdatePortalRequestContent;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->portals->update(
'id',
new UpdatePortalRequestContent([]),
);
from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.portals.update(
id="id",
)
require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.portals.update(id: "id")
curl --request PATCH \
--url https://{tenantDomain}/api/v2/portals/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"slug": "<string>",
"name": "<string>",
"navigation": {
"sidebar": {
"components": [
{
"type": "sidebar:component:auth0:external_link",
"config": {
"label": "<string>",
"url": "<string>",
"icon": "<string>"
}
}
]
}
},
"pages": {
"default": "<string>",
"standard": [
{
"title": "<string>",
"slug": "<string>",
"components": [
{
"type": "page:component:auth0:form",
"config": {
"form_id": "<string>",
"completion_message": "<string>"
}
}
]
}
]
},
"custom_code": {
"head": "<string>"
}
}
'{
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"navigation": {
"sidebar": {
"components": [
{
"type": "sidebar:component:auth0:external_link",
"config": {
"label": "<string>",
"url": "<string>",
"icon": "<string>"
}
}
]
}
},
"pages": {
"default": "<string>",
"standard": [
{
"title": "<string>",
"slug": "<string>",
"components": [
{
"type": "page:component:auth0:form",
"config": {
"form_id": "<string>",
"completion_message": "<string>"
}
}
]
}
]
},
"client": {
"token_endpoint_auth_method": "client_secret_post",
"client_id": "<string>"
},
"custom_code": {
"head": "<string>"
}
}{
"message": "<string>",
"statusCode": 400,
"error": "Bad Request"
}{
"message": "<string>",
"statusCode": 401,
"error": "Unauthorized"
}{
"message": "<string>",
"statusCode": 403,
"error": "Forbidden"
}{
"message": "<string>",
"statusCode": 404,
"error": "Not Found"
}{
"message": "<string>",
"statusCode": 409,
"error": "Conflict"
}{
"message": "<string>",
"statusCode": 429,
"error": "Too Many Requests"
}{
"message": "<string>",
"statusCode": 500,
"error": "Internal Server Error"
}承認
bearerAuthoAuth2ClientCredentials
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Scopes
update:portals
Update Universal Portals
パスパラメータ
ボディ
application/json
レスポンス
Portalが正常に更新されました。