跳至内容
ShopentlyLearn

属性与值

维护属性字典及分配给产品的值。

操作

GET获取列表 — 属性与值/api/v1/features

POST创建 — 属性与值/api/v1/features

DELETE删除 — 属性与值/api/v1/features/{identity}

GET获取 — 属性与值/api/v1/features/{identity}

PATCH更新 — 属性与值/api/v1/features/{identity}

GET获取列表 · 值 — 属性与值/api/v1/features/{identity}/values

POST创建 · 值 — 属性与值/api/v1/features/{identity}/values

DELETE删除 · 值 — 属性与值/api/v1/features/{identity}/values/{value_id}

GET获取 · 值 — 属性与值/api/v1/features/{identity}/values/{value_id}

PATCH更新 · 值 — 属性与值/api/v1/features/{identity}/values/{value_id}

工作原理

属性及其值分别具有集合、详情、创建、更新和删除操作。为产品分配属性时,请使用返回的值标识符。

系统会验证选择规则及现有产品关系。变更前先读取当前版本,删除仍在使用的值前先处理依赖关系。