# logos

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

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

Die Logos der Marke: ein Array, das sich wie jedes andere lesen lässt und zugleich die Aufrufe trägt, die es ändern.

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 }
```

## Genau ein Hauptlogo {#main}

Das erste Logo wird zum Hauptlogo. Wird es entfernt, geht die Rolle an das nächste über; `setMain()` verschiebt sie. Ohne Palette werden die Farben aus dem Hauptlogo gewonnen.

## Rollen {#roles}

`primary`, `secondary`, `icon`, `monogram` oder `other`. Eine Rolle sagt, wie ein Logo verwendet wird, nicht wie es aussieht.

- [Brand](/de/sdk/ref/brand-object): Was eine Marke enthält und wie man sie ändert.
- [palette](/de/sdk/ref/brand-object/palette): Farben, Rollen und Typografie.

```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}
```
