# 概览

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

create() 和 get() 返回的内容。每个修改它的调用都会返回服务器当前保存的品牌。

Status: update · refresh · remove · logos · palette · assets

| 财产 | 类型类型 | 持有 |
| --- | --- | --- |
| id · name · description | 字符串字符串 | 它是谁。 |
| identity | 对象对象 | 标语、详细描述、行业、语言、创立年份、域名、社交账号。 |
| logos | array | 它的标志，包括 `logos.main` 以及 [logos](/zh/sdk/ref/brand-object/logos) 的调用。 |
| palette | 对象对象 | `colors` 和 `typography`，以及 `palette.role()` 和 `palette.set()`。 |
| assets | array | 照片、视频和插图，以及 [assets](/zh/sdk/ref/brand-object/assets) 的调用。 |
| platform | 对象对象 | 使命、价值观、定位、受众、原型、语气和信息。 |
| 企业 | null | 尚未定义。 |
| completeness | 对象对象 | `{ done, total, missing }`：仍为空的内容。 |

## update() {#update}

```javascript
await brand.update({
  identity: { tagline: "Roasted every morning", socials: { instagram: "@qahwalab" } },
  platform: { archetype: "creator", voice: { traits: ["warm", "precise"] } },
});
```

部分更新：未提供的字段保持不变，`null` 会清空它。接受 `name`、`description`、`identity` 和 `platform`；标志、颜色和资源有各自的调用。

## refresh() {#refresh}

从服务器重新读取品牌——在其他设备或代理修改之后。

## toJSON() {#json}

以普通对象表示的品牌，即 Server Action 或 `JSON.stringify` 能够传输的形式。在 Python 中为 `brand.to_dict()`。

- [logos](/zh/sdk/ref/brand-object/logos): 添加标志，选择主标志。
- [palette](/zh/sdk/ref/brand-object/palette): 颜色、角色和字体。
- [assets](/zh/sdk/ref/brand-object/assets): 照片、视频和插图。

```python
brand.update(
    identity={"tagline": "Roasted every morning", "socials": {"instagram": "@qahwalab"}},
    platform={"archetype": "creator", "voice": {"traits": ["warm", "precise"]}},
)
brand.refresh()
brand.to_dict()
```
