Unable to create metafield.

Highlighted
New Member
1 0 0

Hi,

 

I am unable to create the metafield. It was working till yesterday and stopped working. Please refer to the curl request.

 

curl -X POST \

  https://API_KEY:API_SECRET@MY_SHOP_NAME.myshopify.com/admin/orders/ORDER_ID/metafields.json \

  -H 'Accept: application/json' \

  -H 'Authorization: Basic AUTH_WITH_API_KEY_AND_SECRET' \

  -H 'Content-Type: application/json' \

  -H 'cache-control: no-cache' \

  -d '{

"metafield":{

    "namespace": "MY_NAMESPACE",

    "key": "MY_KEY",

    "value": "MY_VALUE”,

    "value_type": "string",

    "description": "MY_DESCRIPTION"

    }

}'

 

I am not sure what is going wrong.

0 Likes