Conversations about creating, managing, and using metafields to store and retrieve custom data for apps and themes.
Shopify metafields API has a field value_type which is deprecated and replaced by type in API version 2021-07.
But when trying it via POSTMAN to create the metafields we are facing issue with an error value_type field should be present for the particular namespace and key.
Request Body :
{
"product": {
"metafields": [
{
"key": "integer",
"value": 8745623,
"type": "integer",
"namespace": "product"
}
]
}
}
The API version we used here is 2021-07.
Ideally It should not cause any issue. Not sure the field is actually deprecated or not,
If deprecated when? and why it is still expecting as a mandatory field to be present in the metafields
Hi Sankeerthana, can you please take a look at this thread: https://community.shopify.com/c/Shopify-APIs-SDKs/AdminAPI-REST-Reference-New-type-property-in-the-m...
To learn more visit the Shopify Help Center or the Community Blog.
Hi Sankeerthana, I can't give an exact timeline but we're working on addressing this issue for all resource endpoints as soon as possible. Once the fix is live, value_type will be properly deprecated for all endpoints that set metafields.
To learn more visit the Shopify Help Center or the Community Blog.