View as Markdown

SDK reference · Python SDK

prov.account.set_branding_logo

prov.account.set_branding_logo in Python SDK.

Signature

prov.account.set_branding_logo(data_base64: str) -> Any

Parameters

data_base64strRequired

Request fields

data_base64stringRequired
The image file, base64-encoded.

Returns

Any The branding, with the new logo.

HTTP operation

PUT /v1/account/branding/logo: Upload the approval-page logo

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/account/branding/logo`, {
  method: "PUT",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "data_base64": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="
  }),
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.