版本:202201
查询元字段定义列表
GET/openapi/2022-01/metafield_definition/:owner_resource
获取所有元字段定义的列表。
请求
Path参数
- shop: 店铺。
- product: 商品。
- product_image: 商品图片。
- product_variant: 商品款式。
- order: 订单。
- page: 自定义页面。
- customer: 顾客。
- collection: 商品专辑。
- blog: 博客。
- article: 文章。
- app: 应用。
owner_resource string必填
所属资源类型。
响应
- 200
- 422
200
- application/json
- 数据结构
- 示例
- Result
数据结构
- Array [
- ]
definitions object[]
idstring
示例:
374034306256875562keystring
示例:
key2namestring
示例:
Bignamespacestring
示例:
testowner_resourcestring
示例:
producttypestring
示例:
booleandescriptionstring
示例:
booleancreate_atstring
示例:
2024-04-28T03:18:59Zupdated_atstring
示例:
2024-04-28T03:18:59Ztotalinteger
默认值:
0示例:
3{
"definitions": [
{
"id": "374034306256875562",
"key": "key2",
"name": "Big",
"namespace": "test",
"owner_resource": "product",
"type": "boolean",
"description": "boolean",
"create_at": "2024-04-28T03:18:59Z",
"updated_at": "2024-04-28T03:18:59Z"
}
],
"total": 3
}
{
"definitions": [
{
"id": "374034306256875562",
"key": "key2",
"name": "Big",
"namespace": "test",
"owner_resource": "product",
"type": "boolean",
"description": "boolean",
"create_at": "2024-04-28T03:18:59Z",
"updated_at": "2024-04-28T03:18:59Z"
},
{
"id": "374032579801653802",
"key": "key1",
"name": "Big",
"namespace": "test",
"owner_resource": "product",
"type": "boolean",
"description": "boolean",
"create_at": "2024-04-28T03:13:49Z",
"updated_at": "2024-04-28T03:13:49Z"
},
{
"id": "373310224787861546",
"key": "config",
"name": "config",
"namespace": "custom",
"owner_resource": "product",
"type": "date",
"description": "desc",
"create_at": "2024-04-26T05:33:18Z",
"updated_at": "2024-04-26T05:33:18Z"
}
],
"total": 3
}
422
- application/json
- 数据结构
- 示例
- Result
数据结构
errorsstring[]
{
"errors": [
"invalid own resources"
]
}
{
"errors": [
"invalid own resources"
]
}