組織の詳細を更新する
curl --request PATCH \
--url https://{tenantDomain}/my-org/v1/details \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"branding": {
"colors": {
"page_background": "#FFFFFF",
"primary": "#000000"
},
"logo_url": "https://example.com/logo.png"
},
"display_name": "Test Organization",
"name": "testorg"
}
'import requests
url = "https://{tenantDomain}/my-org/v1/details"
payload = {
"branding": {
"colors": {
"page_background": "#FFFFFF",
"primary": "#000000"
},
"logo_url": "https://example.com/logo.png"
},
"display_name": "Test Organization",
"name": "testorg"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
branding: {
colors: {page_background: '#FFFFFF', primary: '#000000'},
logo_url: 'https://example.com/logo.png'
},
display_name: 'Test Organization',
name: 'testorg'
})
};
fetch('https://{tenantDomain}/my-org/v1/details', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{tenantDomain}/my-org/v1/details",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'branding' => [
'colors' => [
'page_background' => '#FFFFFF',
'primary' => '#000000'
],
'logo_url' => 'https://example.com/logo.png'
],
'display_name' => 'Test Organization',
'name' => 'testorg'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{tenantDomain}/my-org/v1/details"
payload := strings.NewReader("{\n \"branding\": {\n \"colors\": {\n \"page_background\": \"#FFFFFF\",\n \"primary\": \"#000000\"\n },\n \"logo_url\": \"https://example.com/logo.png\"\n },\n \"display_name\": \"Test Organization\",\n \"name\": \"testorg\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://{tenantDomain}/my-org/v1/details")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"branding\": {\n \"colors\": {\n \"page_background\": \"#FFFFFF\",\n \"primary\": \"#000000\"\n },\n \"logo_url\": \"https://example.com/logo.png\"\n },\n \"display_name\": \"Test Organization\",\n \"name\": \"testorg\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenantDomain}/my-org/v1/details")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"branding\": {\n \"colors\": {\n \"page_background\": \"#FFFFFF\",\n \"primary\": \"#000000\"\n },\n \"logo_url\": \"https://example.com/logo.png\"\n },\n \"display_name\": \"Test Organization\",\n \"name\": \"testorg\"\n}"
response = http.request(request)
puts response.read_body{
"branding": {
"colors": {
"page_background": "#FFFFFF",
"primary": "#000000"
},
"logo_url": "https://example.com/logo.png"
},
"display_name": "Test Organization",
"id": "org_zW1UHutvkVWSWdCC",
"name": "testorg"
}組織の詳細を更新
表示名やブランディングオプションなど、この組織の詳細を更新します。Auth0 組織の詳細については、組織 を参照してください。
PATCH
/
details
組織の詳細を更新する
curl --request PATCH \
--url https://{tenantDomain}/my-org/v1/details \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"branding": {
"colors": {
"page_background": "#FFFFFF",
"primary": "#000000"
},
"logo_url": "https://example.com/logo.png"
},
"display_name": "Test Organization",
"name": "testorg"
}
'import requests
url = "https://{tenantDomain}/my-org/v1/details"
payload = {
"branding": {
"colors": {
"page_background": "#FFFFFF",
"primary": "#000000"
},
"logo_url": "https://example.com/logo.png"
},
"display_name": "Test Organization",
"name": "testorg"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
branding: {
colors: {page_background: '#FFFFFF', primary: '#000000'},
logo_url: 'https://example.com/logo.png'
},
display_name: 'Test Organization',
name: 'testorg'
})
};
fetch('https://{tenantDomain}/my-org/v1/details', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{tenantDomain}/my-org/v1/details",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'branding' => [
'colors' => [
'page_background' => '#FFFFFF',
'primary' => '#000000'
],
'logo_url' => 'https://example.com/logo.png'
],
'display_name' => 'Test Organization',
'name' => 'testorg'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{tenantDomain}/my-org/v1/details"
payload := strings.NewReader("{\n \"branding\": {\n \"colors\": {\n \"page_background\": \"#FFFFFF\",\n \"primary\": \"#000000\"\n },\n \"logo_url\": \"https://example.com/logo.png\"\n },\n \"display_name\": \"Test Organization\",\n \"name\": \"testorg\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://{tenantDomain}/my-org/v1/details")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"branding\": {\n \"colors\": {\n \"page_background\": \"#FFFFFF\",\n \"primary\": \"#000000\"\n },\n \"logo_url\": \"https://example.com/logo.png\"\n },\n \"display_name\": \"Test Organization\",\n \"name\": \"testorg\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenantDomain}/my-org/v1/details")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"branding\": {\n \"colors\": {\n \"page_background\": \"#FFFFFF\",\n \"primary\": \"#000000\"\n },\n \"logo_url\": \"https://example.com/logo.png\"\n },\n \"display_name\": \"Test Organization\",\n \"name\": \"testorg\"\n}"
response = http.request(request)
puts response.read_body{
"branding": {
"colors": {
"page_background": "#FFFFFF",
"primary": "#000000"
},
"logo_url": "https://example.com/logo.png"
},
"display_name": "Test Organization",
"id": "org_zW1UHutvkVWSWdCC",
"name": "testorg"
}承認
OAuth2ClientCredentialsOAuth2AuthCode
The access token received from the authorization server in the OAuth 2.0 flow.
ボディ
application/json
⌘I