Set the organization's brand (Enterprise)
curl --request PUT \
--url https://app.trustivan.com/api/v1/settings/brand \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"product_name": "<string>",
"primary_color": "<string>",
"accent_color": "<string>",
"support_email": "jsmith@example.com",
"support_url": "<string>",
"white_label": true
}
'import requests
url = "https://app.trustivan.com/api/v1/settings/brand"
payload = {
"product_name": "<string>",
"primary_color": "<string>",
"accent_color": "<string>",
"support_email": "jsmith@example.com",
"support_url": "<string>",
"white_label": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
product_name: '<string>',
primary_color: '<string>',
accent_color: '<string>',
support_email: 'jsmith@example.com',
support_url: '<string>',
white_label: true
})
};
fetch('https://app.trustivan.com/api/v1/settings/brand', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/settings/brand"
payload := strings.NewReader("{\n \"product_name\": \"<string>\",\n \"primary_color\": \"<string>\",\n \"accent_color\": \"<string>\",\n \"support_email\": \"jsmith@example.com\",\n \"support_url\": \"<string>\",\n \"white_label\": true\n}")
req, _ := http.NewRequest("PUT", 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))
}{
"entitled": true,
"default_product_name": "<string>",
"product_name": "<string>",
"primary_color": "<string>",
"accent_color": "<string>",
"support_email": "<string>",
"support_url": "<string>",
"white_label": true,
"logo_url": "<string>",
"domain": {
"hostname": "<string>",
"status": "pending",
"record_name": "_domain-verification.security.example.com",
"record_value": "<string>",
"verified_at": "2023-11-07T05:31:56Z",
"checked_at": "2023-11-07T05:31:56Z",
"last_error": "<string>"
},
"contrast": [
{
"pair": "<string>",
"ratio": 123,
"min": 123
}
],
"effective": {
"custom": true,
"product_name": "<string>",
"white_label": true,
"logo_url": "<string>",
"colors": {
"primary": "<string>",
"primary_dark": "<string>",
"on_primary": "<string>",
"accent": "<string>",
"accent_dark": "<string>",
"on_accent": "<string>"
},
"support_email": "<string>",
"support_url": "<string>"
}
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Set the organization's brand (Enterprise)
Replaces the editable settings. A colour is refused (400) when no button label (white or the light scheme’s text colour) reaches 4.5:1 on it, when the primary is under 4.5:1 on the light scheme’s backgrounds (it is the link colour there), or when the accent is under 3:1 there (it is the focus ring). Dark-scheme variants are derived, not supplied. White label needs a product name. Human sessions only.
PUT
/
settings
/
brand
Set the organization's brand (Enterprise)
curl --request PUT \
--url https://app.trustivan.com/api/v1/settings/brand \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"product_name": "<string>",
"primary_color": "<string>",
"accent_color": "<string>",
"support_email": "jsmith@example.com",
"support_url": "<string>",
"white_label": true
}
'import requests
url = "https://app.trustivan.com/api/v1/settings/brand"
payload = {
"product_name": "<string>",
"primary_color": "<string>",
"accent_color": "<string>",
"support_email": "jsmith@example.com",
"support_url": "<string>",
"white_label": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
product_name: '<string>',
primary_color: '<string>',
accent_color: '<string>',
support_email: 'jsmith@example.com',
support_url: '<string>',
white_label: true
})
};
fetch('https://app.trustivan.com/api/v1/settings/brand', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/settings/brand"
payload := strings.NewReader("{\n \"product_name\": \"<string>\",\n \"primary_color\": \"<string>\",\n \"accent_color\": \"<string>\",\n \"support_email\": \"jsmith@example.com\",\n \"support_url\": \"<string>\",\n \"white_label\": true\n}")
req, _ := http.NewRequest("PUT", 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))
}{
"entitled": true,
"default_product_name": "<string>",
"product_name": "<string>",
"primary_color": "<string>",
"accent_color": "<string>",
"support_email": "<string>",
"support_url": "<string>",
"white_label": true,
"logo_url": "<string>",
"domain": {
"hostname": "<string>",
"status": "pending",
"record_name": "_domain-verification.security.example.com",
"record_value": "<string>",
"verified_at": "2023-11-07T05:31:56Z",
"checked_at": "2023-11-07T05:31:56Z",
"last_error": "<string>"
},
"contrast": [
{
"pair": "<string>",
"ratio": 123,
"min": 123
}
],
"effective": {
"custom": true,
"product_name": "<string>",
"white_label": true,
"logo_url": "<string>",
"colors": {
"primary": "<string>",
"primary_dark": "<string>",
"on_primary": "<string>",
"accent": "<string>",
"accent_dark": "<string>",
"on_accent": "<string>"
},
"support_email": "<string>",
"support_url": "<string>"
}
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Authorizations
Body
application/json
Response
Saved.