Upload the organization's logo (Enterprise)
curl --request PUT \
--url https://app.trustivan.com/api/v1/settings/brand/logo \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: image/png' \
--data '<string>'import requests
url = "https://app.trustivan.com/api/v1/settings/brand/logo"
payload = "<string>"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "image/png"
}
response = requests.put(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'image/png'},
body: '<string>'
};
fetch('https://app.trustivan.com/api/v1/settings/brand/logo', 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/logo"
payload := strings.NewReader("<string>")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "image/png")
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"
}Upload the organization's logo (Enterprise)
The image is the raw request body. PNG or JPEG, judged by its bytes rather than its Content-Type, at most 256 KiB, 16 to 1024 pixels on each side. SVG is refused, because it can carry script.
PUT
/
settings
/
brand
/
logo
Upload the organization's logo (Enterprise)
curl --request PUT \
--url https://app.trustivan.com/api/v1/settings/brand/logo \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: image/png' \
--data '<string>'import requests
url = "https://app.trustivan.com/api/v1/settings/brand/logo"
payload = "<string>"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "image/png"
}
response = requests.put(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'image/png'},
body: '<string>'
};
fetch('https://app.trustivan.com/api/v1/settings/brand/logo', 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/logo"
payload := strings.NewReader("<string>")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "image/png")
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
image/pngimage/jpeg
The body is of type file.
Response
Stored.