Version: 202201
Metafield Definition List
GET/openapi/2022-01/metafield_definition/:owner_resource
Retrieve a list of all metafield definitions.
Request
Path Parameters
owner_resource stringrequired
Owner resource type of meta field definition, for example: product_variant | product | collection
Responses
- 200
- 422
200
- application/json
- Schema
- Example
- Result
Schema
- Array [
- ]
definitions object[]
idstring
Example:
374034306256875562keystring
Example:
key2namestring
Example:
Bignamespacestring
Example:
testowner_resourcestring
Example:
producttypestring
Example:
booleandescriptionstring
Example:
booleancreate_atstring
Example:
2024-04-28T03:18:59Zupdated_atstring
Example:
2024-04-28T03:18:59Ztotalinteger
Default value:
0Example:
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
- Schema
- Example
- Result
Schema
errorsstring[]
{
"errors": [
"invalid own resources"
]
}
{
"errors": [
"invalid own resources"
]
}