SDK reference · Python SDK
prov.account.set_branding
prov.account.set_branding in Python SDK. Set any of name, primary, secondary, accent, help_url, email_from, email_from_name, email_reply_to (None clears one).
Signature
prov.account.set_branding(**fields: Any = …) -> AnyParameters
**fieldsAny
Request fields
namestring | null- Up to 40 characters, no URL or phone number, never "Provenance".
primarystring | null- #RRGGBB; white text on it reaches 4.5:1.
secondarystring | null- #RRGGBB; the page text on it reaches 7:1, the primary on it 3:1.
accentstring | null- #RRGGBB; 4.5:1 on white and on the secondary colour.
help_urlstring | null- An https link.
email_fromstring | null- An address on one of your verified sending domains; null goes back to ours.
email_from_namestring | null- The sender's display name.
email_reply_tostring | null- A reply-to address on the same domain as
email_from.
Returns
Any The branding in effect.
HTTP operation
PUT /v1/account/branding: Set the approval-page branding
Errors
- authentication_required
- insufficient_role
- invalid_json
- parameter_invalid
- plan_required
- rate_limit_exceeded
Example
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/account/branding`, {
method: "PUT",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Quillstack",
"primary": "#4F46E5",
"secondary": "#EEF0FF",
"accent": "#0E7490",
"help_url": "https://help.quillstack.example/approvals"
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.put(f"{api}/v1/account/branding", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"name": "Quillstack",
"primary": "#4F46E5",
"secondary": "#EEF0FF",
"accent": "#0E7490",
"help_url": "https://help.quillstack.example/approvals"
}).json()