Update branding configuration
curl --request POST \
--url http://10.2.4.166:8080/composer/api/branding \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/vnd.composer.v3+json' \
--data '
{
"title": "<string>",
"copyrightEnabled": true,
"copyright": "<string>",
"termsEnabled": true,
"terms": "<string>",
"favicon": "<string>",
"headerLogo": "<string>",
"loginLogo": "<string>",
"background": "<string>",
"homeBackground": "<string>",
"iconLogo": "<string>",
"customCss": true,
"customJs": true,
"supportEnabled": true,
"supportLink": "<string>",
"documentationEnabled": true,
"documentationLink": "<string>",
"customHtml": {
"enableHeader": true,
"headerContent": "<string>",
"headerHeight": 123,
"enableFooter": true,
"footerContent": "<string>",
"footerHeight": 123
},
"brandingTs": 123,
"url": "<string>",
"customMessage": "<string>",
"defaultLogo": true,
"quickstartEnabled": true,
"zdContactLink": "<string>",
"zdSupportLink": "<string>",
"zdQuickstartLink": "<string>",
"zdContactVal": "<string>",
"zdSupportVal": "<string>",
"zdQuickstartVal": "<string>"
}
'import requests
url = "http://10.2.4.166:8080/composer/api/branding"
payload = {
"title": "<string>",
"copyrightEnabled": True,
"copyright": "<string>",
"termsEnabled": True,
"terms": "<string>",
"favicon": "<string>",
"headerLogo": "<string>",
"loginLogo": "<string>",
"background": "<string>",
"homeBackground": "<string>",
"iconLogo": "<string>",
"customCss": True,
"customJs": True,
"supportEnabled": True,
"supportLink": "<string>",
"documentationEnabled": True,
"documentationLink": "<string>",
"customHtml": {
"enableHeader": True,
"headerContent": "<string>",
"headerHeight": 123,
"enableFooter": True,
"footerContent": "<string>",
"footerHeight": 123
},
"brandingTs": 123,
"url": "<string>",
"customMessage": "<string>",
"defaultLogo": True,
"quickstartEnabled": True,
"zdContactLink": "<string>",
"zdSupportLink": "<string>",
"zdQuickstartLink": "<string>",
"zdContactVal": "<string>",
"zdSupportVal": "<string>",
"zdQuickstartVal": "<string>"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/vnd.composer.v3+json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Basic <encoded-value>',
'Content-Type': 'application/vnd.composer.v3+json'
},
body: JSON.stringify({
title: '<string>',
copyrightEnabled: true,
copyright: '<string>',
termsEnabled: true,
terms: '<string>',
favicon: '<string>',
headerLogo: '<string>',
loginLogo: '<string>',
background: '<string>',
homeBackground: '<string>',
iconLogo: '<string>',
customCss: true,
customJs: true,
supportEnabled: true,
supportLink: '<string>',
documentationEnabled: true,
documentationLink: '<string>',
customHtml: {
enableHeader: true,
headerContent: '<string>',
headerHeight: 123,
enableFooter: true,
footerContent: '<string>',
footerHeight: 123
},
brandingTs: 123,
url: '<string>',
customMessage: '<string>',
defaultLogo: true,
quickstartEnabled: true,
zdContactLink: '<string>',
zdSupportLink: '<string>',
zdQuickstartLink: '<string>',
zdContactVal: '<string>',
zdSupportVal: '<string>',
zdQuickstartVal: '<string>'
})
};
fetch('http://10.2.4.166:8080/composer/api/branding', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://10.2.4.166:8080/composer/api/branding",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'title' => '<string>',
'copyrightEnabled' => true,
'copyright' => '<string>',
'termsEnabled' => true,
'terms' => '<string>',
'favicon' => '<string>',
'headerLogo' => '<string>',
'loginLogo' => '<string>',
'background' => '<string>',
'homeBackground' => '<string>',
'iconLogo' => '<string>',
'customCss' => true,
'customJs' => true,
'supportEnabled' => true,
'supportLink' => '<string>',
'documentationEnabled' => true,
'documentationLink' => '<string>',
'customHtml' => [
'enableHeader' => true,
'headerContent' => '<string>',
'headerHeight' => 123,
'enableFooter' => true,
'footerContent' => '<string>',
'footerHeight' => 123
],
'brandingTs' => 123,
'url' => '<string>',
'customMessage' => '<string>',
'defaultLogo' => true,
'quickstartEnabled' => true,
'zdContactLink' => '<string>',
'zdSupportLink' => '<string>',
'zdQuickstartLink' => '<string>',
'zdContactVal' => '<string>',
'zdSupportVal' => '<string>',
'zdQuickstartVal' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/vnd.composer.v3+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 := "http://10.2.4.166:8080/composer/api/branding"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"copyrightEnabled\": true,\n \"copyright\": \"<string>\",\n \"termsEnabled\": true,\n \"terms\": \"<string>\",\n \"favicon\": \"<string>\",\n \"headerLogo\": \"<string>\",\n \"loginLogo\": \"<string>\",\n \"background\": \"<string>\",\n \"homeBackground\": \"<string>\",\n \"iconLogo\": \"<string>\",\n \"customCss\": true,\n \"customJs\": true,\n \"supportEnabled\": true,\n \"supportLink\": \"<string>\",\n \"documentationEnabled\": true,\n \"documentationLink\": \"<string>\",\n \"customHtml\": {\n \"enableHeader\": true,\n \"headerContent\": \"<string>\",\n \"headerHeight\": 123,\n \"enableFooter\": true,\n \"footerContent\": \"<string>\",\n \"footerHeight\": 123\n },\n \"brandingTs\": 123,\n \"url\": \"<string>\",\n \"customMessage\": \"<string>\",\n \"defaultLogo\": true,\n \"quickstartEnabled\": true,\n \"zdContactLink\": \"<string>\",\n \"zdSupportLink\": \"<string>\",\n \"zdQuickstartLink\": \"<string>\",\n \"zdContactVal\": \"<string>\",\n \"zdSupportVal\": \"<string>\",\n \"zdQuickstartVal\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/vnd.composer.v3+json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://10.2.4.166:8080/composer/api/branding")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/vnd.composer.v3+json")
.body("{\n \"title\": \"<string>\",\n \"copyrightEnabled\": true,\n \"copyright\": \"<string>\",\n \"termsEnabled\": true,\n \"terms\": \"<string>\",\n \"favicon\": \"<string>\",\n \"headerLogo\": \"<string>\",\n \"loginLogo\": \"<string>\",\n \"background\": \"<string>\",\n \"homeBackground\": \"<string>\",\n \"iconLogo\": \"<string>\",\n \"customCss\": true,\n \"customJs\": true,\n \"supportEnabled\": true,\n \"supportLink\": \"<string>\",\n \"documentationEnabled\": true,\n \"documentationLink\": \"<string>\",\n \"customHtml\": {\n \"enableHeader\": true,\n \"headerContent\": \"<string>\",\n \"headerHeight\": 123,\n \"enableFooter\": true,\n \"footerContent\": \"<string>\",\n \"footerHeight\": 123\n },\n \"brandingTs\": 123,\n \"url\": \"<string>\",\n \"customMessage\": \"<string>\",\n \"defaultLogo\": true,\n \"quickstartEnabled\": true,\n \"zdContactLink\": \"<string>\",\n \"zdSupportLink\": \"<string>\",\n \"zdQuickstartLink\": \"<string>\",\n \"zdContactVal\": \"<string>\",\n \"zdSupportVal\": \"<string>\",\n \"zdQuickstartVal\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://10.2.4.166:8080/composer/api/branding")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/vnd.composer.v3+json'
request.body = "{\n \"title\": \"<string>\",\n \"copyrightEnabled\": true,\n \"copyright\": \"<string>\",\n \"termsEnabled\": true,\n \"terms\": \"<string>\",\n \"favicon\": \"<string>\",\n \"headerLogo\": \"<string>\",\n \"loginLogo\": \"<string>\",\n \"background\": \"<string>\",\n \"homeBackground\": \"<string>\",\n \"iconLogo\": \"<string>\",\n \"customCss\": true,\n \"customJs\": true,\n \"supportEnabled\": true,\n \"supportLink\": \"<string>\",\n \"documentationEnabled\": true,\n \"documentationLink\": \"<string>\",\n \"customHtml\": {\n \"enableHeader\": true,\n \"headerContent\": \"<string>\",\n \"headerHeight\": 123,\n \"enableFooter\": true,\n \"footerContent\": \"<string>\",\n \"footerHeight\": 123\n },\n \"brandingTs\": 123,\n \"url\": \"<string>\",\n \"customMessage\": \"<string>\",\n \"defaultLogo\": true,\n \"quickstartEnabled\": true,\n \"zdContactLink\": \"<string>\",\n \"zdSupportLink\": \"<string>\",\n \"zdQuickstartLink\": \"<string>\",\n \"zdContactVal\": \"<string>\",\n \"zdSupportVal\": \"<string>\",\n \"zdQuickstartVal\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"title": "<string>",
"copyrightEnabled": true,
"copyright": "<string>",
"termsEnabled": true,
"terms": "<string>",
"favicon": "<string>",
"headerLogo": "<string>",
"loginLogo": "<string>",
"background": "<string>",
"homeBackground": "<string>",
"iconLogo": "<string>",
"customCss": true,
"customJs": true,
"supportEnabled": true,
"supportLink": "<string>",
"documentationEnabled": true,
"documentationLink": "<string>",
"customHtml": {
"enableHeader": true,
"headerContent": "<string>",
"headerHeight": 123,
"enableFooter": true,
"footerContent": "<string>",
"footerHeight": 123
},
"brandingTs": 123,
"url": "<string>",
"customMessage": "<string>",
"defaultLogo": true,
"quickstartEnabled": true,
"zdContactLink": "<string>",
"zdSupportLink": "<string>",
"zdQuickstartLink": "<string>",
"zdContactVal": "<string>",
"zdSupportVal": "<string>",
"zdQuickstartVal": "<string>"
}Update branding configuration
Supervisor authority is required to access this endpoint
Update branding configuration
curl --request POST \
--url http://10.2.4.166:8080/composer/api/branding \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/vnd.composer.v3+json' \
--data '
{
"title": "<string>",
"copyrightEnabled": true,
"copyright": "<string>",
"termsEnabled": true,
"terms": "<string>",
"favicon": "<string>",
"headerLogo": "<string>",
"loginLogo": "<string>",
"background": "<string>",
"homeBackground": "<string>",
"iconLogo": "<string>",
"customCss": true,
"customJs": true,
"supportEnabled": true,
"supportLink": "<string>",
"documentationEnabled": true,
"documentationLink": "<string>",
"customHtml": {
"enableHeader": true,
"headerContent": "<string>",
"headerHeight": 123,
"enableFooter": true,
"footerContent": "<string>",
"footerHeight": 123
},
"brandingTs": 123,
"url": "<string>",
"customMessage": "<string>",
"defaultLogo": true,
"quickstartEnabled": true,
"zdContactLink": "<string>",
"zdSupportLink": "<string>",
"zdQuickstartLink": "<string>",
"zdContactVal": "<string>",
"zdSupportVal": "<string>",
"zdQuickstartVal": "<string>"
}
'import requests
url = "http://10.2.4.166:8080/composer/api/branding"
payload = {
"title": "<string>",
"copyrightEnabled": True,
"copyright": "<string>",
"termsEnabled": True,
"terms": "<string>",
"favicon": "<string>",
"headerLogo": "<string>",
"loginLogo": "<string>",
"background": "<string>",
"homeBackground": "<string>",
"iconLogo": "<string>",
"customCss": True,
"customJs": True,
"supportEnabled": True,
"supportLink": "<string>",
"documentationEnabled": True,
"documentationLink": "<string>",
"customHtml": {
"enableHeader": True,
"headerContent": "<string>",
"headerHeight": 123,
"enableFooter": True,
"footerContent": "<string>",
"footerHeight": 123
},
"brandingTs": 123,
"url": "<string>",
"customMessage": "<string>",
"defaultLogo": True,
"quickstartEnabled": True,
"zdContactLink": "<string>",
"zdSupportLink": "<string>",
"zdQuickstartLink": "<string>",
"zdContactVal": "<string>",
"zdSupportVal": "<string>",
"zdQuickstartVal": "<string>"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/vnd.composer.v3+json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Basic <encoded-value>',
'Content-Type': 'application/vnd.composer.v3+json'
},
body: JSON.stringify({
title: '<string>',
copyrightEnabled: true,
copyright: '<string>',
termsEnabled: true,
terms: '<string>',
favicon: '<string>',
headerLogo: '<string>',
loginLogo: '<string>',
background: '<string>',
homeBackground: '<string>',
iconLogo: '<string>',
customCss: true,
customJs: true,
supportEnabled: true,
supportLink: '<string>',
documentationEnabled: true,
documentationLink: '<string>',
customHtml: {
enableHeader: true,
headerContent: '<string>',
headerHeight: 123,
enableFooter: true,
footerContent: '<string>',
footerHeight: 123
},
brandingTs: 123,
url: '<string>',
customMessage: '<string>',
defaultLogo: true,
quickstartEnabled: true,
zdContactLink: '<string>',
zdSupportLink: '<string>',
zdQuickstartLink: '<string>',
zdContactVal: '<string>',
zdSupportVal: '<string>',
zdQuickstartVal: '<string>'
})
};
fetch('http://10.2.4.166:8080/composer/api/branding', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://10.2.4.166:8080/composer/api/branding",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'title' => '<string>',
'copyrightEnabled' => true,
'copyright' => '<string>',
'termsEnabled' => true,
'terms' => '<string>',
'favicon' => '<string>',
'headerLogo' => '<string>',
'loginLogo' => '<string>',
'background' => '<string>',
'homeBackground' => '<string>',
'iconLogo' => '<string>',
'customCss' => true,
'customJs' => true,
'supportEnabled' => true,
'supportLink' => '<string>',
'documentationEnabled' => true,
'documentationLink' => '<string>',
'customHtml' => [
'enableHeader' => true,
'headerContent' => '<string>',
'headerHeight' => 123,
'enableFooter' => true,
'footerContent' => '<string>',
'footerHeight' => 123
],
'brandingTs' => 123,
'url' => '<string>',
'customMessage' => '<string>',
'defaultLogo' => true,
'quickstartEnabled' => true,
'zdContactLink' => '<string>',
'zdSupportLink' => '<string>',
'zdQuickstartLink' => '<string>',
'zdContactVal' => '<string>',
'zdSupportVal' => '<string>',
'zdQuickstartVal' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/vnd.composer.v3+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 := "http://10.2.4.166:8080/composer/api/branding"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"copyrightEnabled\": true,\n \"copyright\": \"<string>\",\n \"termsEnabled\": true,\n \"terms\": \"<string>\",\n \"favicon\": \"<string>\",\n \"headerLogo\": \"<string>\",\n \"loginLogo\": \"<string>\",\n \"background\": \"<string>\",\n \"homeBackground\": \"<string>\",\n \"iconLogo\": \"<string>\",\n \"customCss\": true,\n \"customJs\": true,\n \"supportEnabled\": true,\n \"supportLink\": \"<string>\",\n \"documentationEnabled\": true,\n \"documentationLink\": \"<string>\",\n \"customHtml\": {\n \"enableHeader\": true,\n \"headerContent\": \"<string>\",\n \"headerHeight\": 123,\n \"enableFooter\": true,\n \"footerContent\": \"<string>\",\n \"footerHeight\": 123\n },\n \"brandingTs\": 123,\n \"url\": \"<string>\",\n \"customMessage\": \"<string>\",\n \"defaultLogo\": true,\n \"quickstartEnabled\": true,\n \"zdContactLink\": \"<string>\",\n \"zdSupportLink\": \"<string>\",\n \"zdQuickstartLink\": \"<string>\",\n \"zdContactVal\": \"<string>\",\n \"zdSupportVal\": \"<string>\",\n \"zdQuickstartVal\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/vnd.composer.v3+json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://10.2.4.166:8080/composer/api/branding")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/vnd.composer.v3+json")
.body("{\n \"title\": \"<string>\",\n \"copyrightEnabled\": true,\n \"copyright\": \"<string>\",\n \"termsEnabled\": true,\n \"terms\": \"<string>\",\n \"favicon\": \"<string>\",\n \"headerLogo\": \"<string>\",\n \"loginLogo\": \"<string>\",\n \"background\": \"<string>\",\n \"homeBackground\": \"<string>\",\n \"iconLogo\": \"<string>\",\n \"customCss\": true,\n \"customJs\": true,\n \"supportEnabled\": true,\n \"supportLink\": \"<string>\",\n \"documentationEnabled\": true,\n \"documentationLink\": \"<string>\",\n \"customHtml\": {\n \"enableHeader\": true,\n \"headerContent\": \"<string>\",\n \"headerHeight\": 123,\n \"enableFooter\": true,\n \"footerContent\": \"<string>\",\n \"footerHeight\": 123\n },\n \"brandingTs\": 123,\n \"url\": \"<string>\",\n \"customMessage\": \"<string>\",\n \"defaultLogo\": true,\n \"quickstartEnabled\": true,\n \"zdContactLink\": \"<string>\",\n \"zdSupportLink\": \"<string>\",\n \"zdQuickstartLink\": \"<string>\",\n \"zdContactVal\": \"<string>\",\n \"zdSupportVal\": \"<string>\",\n \"zdQuickstartVal\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://10.2.4.166:8080/composer/api/branding")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/vnd.composer.v3+json'
request.body = "{\n \"title\": \"<string>\",\n \"copyrightEnabled\": true,\n \"copyright\": \"<string>\",\n \"termsEnabled\": true,\n \"terms\": \"<string>\",\n \"favicon\": \"<string>\",\n \"headerLogo\": \"<string>\",\n \"loginLogo\": \"<string>\",\n \"background\": \"<string>\",\n \"homeBackground\": \"<string>\",\n \"iconLogo\": \"<string>\",\n \"customCss\": true,\n \"customJs\": true,\n \"supportEnabled\": true,\n \"supportLink\": \"<string>\",\n \"documentationEnabled\": true,\n \"documentationLink\": \"<string>\",\n \"customHtml\": {\n \"enableHeader\": true,\n \"headerContent\": \"<string>\",\n \"headerHeight\": 123,\n \"enableFooter\": true,\n \"footerContent\": \"<string>\",\n \"footerHeight\": 123\n },\n \"brandingTs\": 123,\n \"url\": \"<string>\",\n \"customMessage\": \"<string>\",\n \"defaultLogo\": true,\n \"quickstartEnabled\": true,\n \"zdContactLink\": \"<string>\",\n \"zdSupportLink\": \"<string>\",\n \"zdQuickstartLink\": \"<string>\",\n \"zdContactVal\": \"<string>\",\n \"zdSupportVal\": \"<string>\",\n \"zdQuickstartVal\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"title": "<string>",
"copyrightEnabled": true,
"copyright": "<string>",
"termsEnabled": true,
"terms": "<string>",
"favicon": "<string>",
"headerLogo": "<string>",
"loginLogo": "<string>",
"background": "<string>",
"homeBackground": "<string>",
"iconLogo": "<string>",
"customCss": true,
"customJs": true,
"supportEnabled": true,
"supportLink": "<string>",
"documentationEnabled": true,
"documentationLink": "<string>",
"customHtml": {
"enableHeader": true,
"headerContent": "<string>",
"headerHeight": 123,
"enableFooter": true,
"footerContent": "<string>",
"footerHeight": 123
},
"brandingTs": 123,
"url": "<string>",
"customMessage": "<string>",
"defaultLogo": true,
"quickstartEnabled": true,
"zdContactLink": "<string>",
"zdSupportLink": "<string>",
"zdQuickstartLink": "<string>",
"zdContactVal": "<string>",
"zdSupportVal": "<string>",
"zdQuickstartVal": "<string>"
}Authorizations
Body
application/vnd.composer.v3+json
Branded UI settings for the Composer application
Response
200 - */*
OK
Branded UI settings for the Composer application
Was this page helpful?