Brand

logos

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

Os logotipos da marca: um array que se lê como qualquer outro e que também carrega as chamadas que o alteram.

one main logo12 at most5 MB each
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

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

Exatamente um logotipo principal

O primeiro logotipo vira o principal. Removê-lo passa o papel para o seguinte; setMain() o muda de lugar. Sem paleta, é do logotipo principal que as cores são extraídas.

Papéis

primary, secondary, icon, monogram ou other. Um papel diz como um logotipo é usado, não como ele parece.