前置条件: 先阅读
../lark-shared/SKILL.md了解认证、全局参数和安全规则。
更新卡片配置。
lark-cli base +view-set-card \
--base-token app_xxx \
--table-id tbl_xxx \
--view-id viw_xxx \
--json {"cover_field":"fld_cover"}
{
"cover_field": "fld_cover"
}
{
"cover_field": null
}
| 参数 | 必填 | 说明 |
|---|---|---|
--base-token <token> |
是 | Base Token |
--table-id <id_or_name> |
是 | 表 ID 或表名 |
--view-id <id_or_name> |
是 | 视图 ID 或视图名 |
--json <body> |
是 | JSON 对象 |
HTTP 方法和路径:
PUT /open-apis/base/v3/bases/:base_token/tables/:table_id/views/:view_id/card
cover_field:必填,字段 id 或字段名,长度 1..100;也可以显式传 nullnull 时,字段必须是封面支持字段,实际就是 attachment 字段null 表示清空封面配置{"type":"object","properties":{"cover_field":{"anyOf":[{"type":"string","minLength":1,"maxLength":100,"description":"Field id or name"},{"type":"null"}],"description":"cover field id or name. must be a attachment field"}},"required":["cover_field"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}
+view-get-card 拉现状,再修改。gallery / kanban。cover_field 不是任何字段都能填,普通文本/数字字段会直接报错。null,不要传空字符串。