metafields API not working form last few days

Sanjay_Khunt
Shopify Expert
1 0 0

I am using below code to add metafields data from store admin. It's working fine before but from last few days it's not working anymore.

window.parent.$ && window.parent.$
window.parent.fetch
$.ajax({
url: '/admin/api/2019-07/metafields.json',

data: {
"metafield": {
"namespace": "sepc",
"description": "My name is "+thname,
"key": name,
"value": "user name",
"value_type": "string"
}
},
success: function(result) {
console.log(result)
//alert("success?");
}

}).done(function() {
document.querySelector('#access-btn').innerHTML = 'Active '+name;
window.location.reload();
}).fail(function() {
alert('fail')
});

Now above code not working and can't see entry in metafeilds. Is there any updated in shopify or API?

0 Likes