# prov.account.setBranding

prov.account.setBranding in Node SDK. Set branding fields (only those passed change; `null` clears one).

## Signature

```ts
prov.account.setBranding(params: { name?: string | null; primary?: string | null; secondary?: string | null; accent?: string | null; helpUrl?: string | null; emailFrom?: string | null; emailFromName?: string | null; emailReplyTo?: string | null; }): Promise<AccountBranding>
```

## Parameters

- `params` ({ name?: string | null; primary?: string | null; secondary?: string | null; accent?: string | null; helpUrl?: string | null; emailFrom?: string | null; emailFromName?: string | null; emailReplyTo?: string | null; })

## Returns

`Promise<AccountBranding>`

## HTTP operation

[`PUT /v1/account/branding`](https://provenanceauth.com/docs/api/account.md#put-v1-account-branding): Set the approval-page branding

## Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`insufficient_role`](https://provenanceauth.com/docs/platform/errors.md#insufficient_role)
- [`invalid_json`](https://provenanceauth.com/docs/platform/errors.md#invalid_json)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`plan_required`](https://provenanceauth.com/docs/platform/errors.md#plan_required)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)

## Example

**Node**

```ts
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();
```

**Python**

```python
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()
```
