Version: 202201
Metafield Definition Detail
GET/openapi/2022-01/metafield_definition
Retrieve a metafield definition by its unique identifier.
Request
Query Parameters
id stringrequired
Metafield definition id
Responses
- 200
- 404
- 422
200
- application/json
- Schema
- Example
- Result
Schema
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:59Z{
"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": "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"
}
404
- application/json
- Schema
- Example
- Result
Schema
errorsstring[]
{
"errors": [
"Metafield definition namespace and key exist"
]
}
{
"errors": [
"Metafield definition namespace and key exist"
]
}
422
- application/json
- Schema
- Example
- Result
Schema
errorsstring[]
{
"errors": [
"Id is required"
]
}
{
"errors": [
"Id is required"
]
}