Has a solution ever been provided? I too cannot create a metafield for a product using the admin api. I did the following:
URL: https://{API [email removed]
Action: Post
Body:
{
“metafield”: {
“namespace”: “global”,
“key”: “Test_Metafield”,
“value”: “Value for test metafield”,
“value_type”: “string”,
“description”: “This is the description”
}
}
When I try sending it I get a status 200 but with HTML as the response but no metafield was created for the product:
I even tried using basic authentication with the username set to my API key and the password with my API password and removed those values from the URL but I still get the same response in which no metafield gets created.