版本:202201
查询元字段 详情
GET/openapi/2022-01/:resource/:resource_id/metafields/:id
请求
Path参数
resource string必填
The type of resource that the metafield is attached to. Available resources: shop, product, product_image, product_variant, order, page, customer, collection, blog, article.
resource_id string必填
The unique ID of the resource that the metafield is attached to.
id string必填
Metafield's ID
响应
- 200
- 404
200
- application/json
- 数据结构
- 示例
- Result
数据结构
metafield object
idstring
示例:
374087540346466346store_idinteger
默认值:
0示例:
633130created_atstring
示例:
2024-04-28T06:52:36Zupdated_atstring
示例:
2024-04-28T06:52:36Zowner_resourcestring
示例:
productowner_idstring
示例:
a1a88be0-a1d4-47e4-a2f2-ba6e131cf447namespacestring
示例:
shirtkeystring
示例:
weight1typestring
示例:
weightvalueinteger
默认值:
0示例:
10descriptionstring
示例:
weightdefinition_idstring
示例:
374087760941687850{
"metafield": {
"id": "374087540346466346",
"store_id": 633130,
"created_at": "2024-04-28T06:52:36Z",
"updated_at": "2024-04-28T06:52:36Z",
"owner_resource": "product",
"owner_id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
"namespace": "shirt",
"key": "weight1",
"type": "weight",
"value": 10,
"description": "weight",
"definition_id": "374087760941687850"
}
}
{
"metafield": {
"id": "374087540346466346",
"store_id": 633130,
"created_at": "2024-04-28T06:52:36Z",
"updated_at": "2024-04-28T06:52:36Z",
"owner_resource": "product",
"owner_id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
"namespace": "shirt",
"key": "weight1",
"type": "weight",
"value": 10,
"description": "weight",
"definition_id": "374087760941687850"
}
}
404
- text/plain
无 Schema