# prov.authorize.issuer.programs.set_branding

prov.authorize.issuer.programs.set_branding in Python SDK. Partial; `None` clears a field.

## Signature

```python
prov.authorize.issuer.programs.set_branding(program_id: str, **body: Any = …) -> Any
```

## Parameters

- `program_id` (str)
- `**body` (Any, optional)

## Returns

`Any`

## HTTP operation

[`PUT /v1/authorize/issuer_programs/{id}/branding`](https://provenanceauth.com/docs/api/issuer-controls.md#put-v1-authorize-issuer-programs-id-branding): Set a program's approval branding

## Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`insufficient_scope`](https://provenanceauth.com/docs/platform/errors.md#insufficient_scope)
- [`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)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)

## Example

**Node**

```ts
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
  body: JSON.stringify({
    "name": "Fernhill agent cards",
    "processor": "lithic",
    "approvals": {
      "delivery": "issuer_push"
    }
  }),
})).json();
const program = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs/${program}/branding`, {
  method: "PUT",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
  body: JSON.stringify({
    "name": "Fernhill Bank",
    "primary": "#1D4ED8",
    "help_url": "https://help.fernhill.example/cards",
    "powered_by": false,
    "page_theme": "dark",
    "theme_switch": true
  }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
    "name": "Fernhill agent cards",
    "processor": "lithic",
    "approvals": {
        "delivery": "issuer_push"
    }
}).json()
program = step1["id"]
data = httpx.put(f"{api}/v1/authorize/issuer_programs/{program}/branding", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
    "name": "Fernhill Bank",
    "primary": "#1D4ED8",
    "help_url": "https://help.fernhill.example/cards",
    "powered_by": False,
    "page_theme": "dark",
    "theme_switch": True
}).json()
```
