Version: 202201
Update Metafield Definition
PUT/openapi/2022-01/metafield_definition/:id
Update an existing metafield definition.
Request
Path Parameters
id stringrequired
- application/json
- Body
- Example
Body
descriptionstring
Description of metafield definition
namestring
Name of metafield definition
{
"description": "string",
"name": "string"
}
Responses
- 200
- 404
- 422
200
- application/json
- Schema
- Example
- Result
Schema
idstring
Example:
374034306256875562keystring
Example:
key2namestring
Example:
longnamespacestring
Example:
testowner_resourcestring
Example:
producttypestring
Example:
booleandescriptionstring
Example:
desc2create_atstring
Example:
2024-04-28T03:18:59Zupdated_atstring
Example:
2024-04-28T03:42:42Z{
"id": "374034306256875562",
"key": "key2",
"name": "long",
"namespace": "test",
"owner_resource": "product",
"type": "boolean",
"description": "desc2",
"create_at": "2024-04-28T03:18:59Z",
"updated_at": "2024-04-28T03:42:42Z"
}
{
"id": "374034306256875562",
"key": "key2",
"name": "long",
"namespace": "test",
"owner_resource": "product",
"type": "boolean",
"description": "desc2",
"create_at": "2024-04-28T03:18:59Z",
"updated_at": "2024-04-28T03:42:42Z"
}
404
- application/json
- Schema
- Example
- Result
Schema
errorsstring[]
{
"errors": [
"No metafield definition found"
]
}
{
"errors": [
"No metafield definition found"
]
}
422
- application/json
- Schema
- Example
- Result
Schema
errorsstring[]
{
"errors": [
""
]
}
{
"errors": [
""
]
}