更新智能分类
PUT https://{handle}.myshopline.com/admin/openapi/v20220901/products/smart_collections/:smart_collection_id.json
handle
:店铺的唯一标识符,值为店铺域名的前缀。例如,域名为 open001.myshopline.com
的店铺,其 handle
是 open001
。更新智能分类
路径参数
- smart_collection_id string required智能分类IDExample:
12248721639068681442230282
请求头
- Content-Type required字段值固定为
application/json; charset=utf-8
- Authorization string required资源的访问令牌。请参考 应用授权 获取访问令牌,然后将获取到的访问令牌以 Bearer 格式传入Example:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
请求体
smart_collectionobject required
智能分类信息bannerobject
分类banner图alt string图片altExample:我是分类banner图片alt
src string图片地址Example:https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.png
body_html string分类描述Example:我是分类描述
disjunctive boolean智能分类框定商品的条件之间的关系,true:商品符合任意一个条件,即可被纳入该智能分类中;false:商品必须满足所有条件必须全符合,才可被纳入该智能分类中Example:true
handle string分类HandleExample:我是分类handle
imageobject
分类图片alt string图片altExample:我是分类图片atl
src string图片地址Example:https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.png
published_scope string设置发布范围,值为「web」时表示在线商店Example:web
rulesobject[]
智能添加条件column string条件变量,商品标题: title,售价: sale_price,原价: compared_at_price,标签: tag,库存: inventory,供应商: vendor,重量: variant_weight,规格名称: variant_title,创建时间: created_at,销售: sales, 浏览量: view,加购量: add_to_cart,商品类型: product_categoryExample:tag
condition string条件值Example:tag1
relation string判断语句, 等于 不等于 开头为 结尾为 包含 不包含 大于 小于Example:equals
sort_order string排序方式, 热销 产品名称从A-Z 产品名称从Z- A 更新时间新→旧 更新时间旧→新 自定义Example:updated-asc
title string分类标题Example:我是分类title
响应
- 200
- 401
- 429
更多状态码信息请参考 HTTP 状态码
响应头
traceId
traceId
响应体
smart_collectionobject
智能分类信息bannerobject
分类banneralt string图片altExample:我们分类banner图片alt
src string图片地址Example:https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.png
body_html string分类描述Example:我是分类描述
created_at string创建时间Example:2021-09-03T14:11:54+00:00
disjunctive boolean条件间关系Example:true
handle string分类handleExample:我是分类handle
id string分类idExample:12248721639068681442230282
imageobject
分类图片alt string图片altExample:我是分类图片alt
src string图片地址Example:https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.png
published_at string发布时间Example:2021-09-03T14:11:54+00:00
published_scope string发布范围,值为「web」时表示在线商店Example:web
rulesobject[]
智能添加条件column string条件变量Example:tag
condition string条件值Example:tag1
relation string判断语句Example:equals
sort_order string排序方式Example:updated-asc
template_path string主题模板Example:templates/sortation/detail.json
title string分类标题Example:我是分类标题
updated_at string更新时间Example:2021-09-03T14:11:54+00:00
API Explorer
调试台
这篇文章对你有帮助吗?
Error loading component.