# logos

Canonical URL: https://developers.iagenify.com/sdk/ref/brand-object/logos/
Language: en

`brand.logos.add(logo) · update(id, changes) · setMain(id) · remove(id) · main`

The brand's logos: an array you can read like any other, which also carries the calls that change it.

Status: one main logo · 12 at most · 5 MB each

```javascript
await brand.logos.add({ name: "mark.svg", content: svgText, role: "icon" });
await brand.logos.setMain(brand.logos.find((l) => l.role === "icon").id);
await brand.logos.update(logoId, { role: "monogram" });
await brand.logos.remove(logoId);

brand.logos.main;   // { id, name, role, format, width, height, url, main: true }
```

## Exactly one main logo {#main}

The first logo becomes the main one. Removing it hands the role to the next; `setMain()` moves it. Without a palette, it is the main logo that colors are extracted from.

## Roles {#roles}

`primary`, `secondary`, `icon`, `monogram` or `other`. A role says how a logo is used, not how it looks.

- [Brand](/sdk/ref/brand-object): What a brand carries, and how to change it.
- [palette](/sdk/ref/brand-object/palette): Colors, roles and typography.

```python
brand.logos.add({"name": "mark.svg", "content": svg_text, "role": "icon"})
icon = next(logo for logo in brand.logos if logo["role"] == "icon")
brand.logos.set_main(icon["id"])
brand.logos.update(logo_id, role="monogram")
brand.logos.remove(logo_id)

brand.logos.main   # {"id", "name", "role", "format", "width", "height", "url", "main": True}
```
