Here is the entire response:
product id that will be set: 4340467957811
POST https://xxxxxxxxxxxx.myshopify.com/admin/api/2021-01/products/4340467957811/metafields.json201735 ms
-
Network
Request Headers
Content-Type: application/json
User-Agent: PostmanRuntime/7.26.10
Accept: /
Cache-Control: no-cache
Postman-Token: a2b2e7ef-a5b5-4deb-8302-1ab2c877f838
Host: chriscoffee-dev.myshopify.com
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Cookie: _shopify_fs=2021-02-25T16%3A23%3A15Z; _shopify_y=d698f64c-bd9e-4fd9-b492-be2a4e0f2b58; _y=d698f64c-bd9e-4fd9-b492-be2a4e0f2b58
Request Body
{ “metafield”: { “namespace”: “specifications”, “key”: “width”, “value”: “31”, “value_type”: “string” } }
Response Headers
Date: Sun, 28 Feb 2021 15:03:08 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
X-Sorting-Hat-PodId: 50
X-Sorting-Hat-ShopId: 25163989043
Referrer-Policy: origin-when-cross-origin
X-Frame-Options: DENY
X-ShopId: 25163989043
X-ShardId: 50
X-Stats-UserId:
X-Stats-ApiClientId: 4639529
X-Stats-ApiPermissionId: 210925060147
X-Shopify-API-Terms: By accessing or using the Shopify API you agree to the Shopify API License and Terms of Use at Shopify API License and Terms of Use
HTTP_X_SHOPIFY_SHOP_API_CALL_LIMIT: 1/80
X-Shopify-Shop-Api-Call-Limit: 1/80
X-Shopify-API-Version: 2021-01
Location: https://chriscoffee-dev.myshopify.com/admin/metafields/18765947895859
Strict-Transport-Security: max-age=7889238
X-Shopify-Stage: production
Content-Security-Policy: default-src ‘self’ data: blob: ‘unsafe-inline’ ‘unsafe-eval’ https://* shopify-pos://; block-all-mixed-content; child-src ‘self’ https:// shopify-pos://; connect-src ‘self’ wss:// https://*; frame-ancestors ‘none’; img-src ‘self’ data: blob: https:; script-src https://cdn.shopify.com https://cdn.shopifycdn.net https://checkout.shopifycs.com https://js-agent.newrelic.com https://bam.nr-data.net https://api.stripe.com https://mpsnare.iesnare.com https://appcenter.intuit.com https://www.paypal.com https://js.braintreegateway.com https://c.paypal.com https://maps.googleapis.com https://www.google-analytics.com https://v.shopify.com https://widget.intercom.io https://js.intercomcdn.com ‘self’ ‘unsafe-inline’ ‘unsafe-eval’; upgrade-insecure-requests; report-uri /csp-report?source%5Baction%5D=create&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Fmetafields&source%5Bsection%5D=admin_api&source%5Buuid%5D=5dbf52ab-d197-4ede-8801-a0f5104df301
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 1; mode=block; report=/xss-report?source%5Baction%5D=create&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Fmetafields&source%5Bsection%5D=admin_api&source%5Buuid%5D=5dbf52ab-d197-4ede-8801-a0f5104df301
X-Dc: gcp-us-east1,gcp-us-central1,gcp-us-central1
NEL: {“report_to”:“network-errors”,“max_age”:2592000,“success_fraction”:0.0001}
NEL: {“report_to”:“network-errors”,“max_age”:2592000,“success_fraction”:0.0001}
Report-To: {“group”:“network-errors”,“max_age”:2592000,“endpoints”:[{“url”:“https://monorail-edge.shopifycloud.com/v1/reports/nel/20190325/shopify”}]}
Report-To: {“group”:“network-errors”,“max_age”:2592000,“endpoints”:[{“url”:“https://monorail-edge.shopifycloud.com/v1/reports/nel/20190325/shopify”}]}
X-Request-ID: 5dbf52ab-d197-4ede-8801-a0f5104df301
Set-Cookie: _y=d698f64c-bd9e-4fd9-b492-be2a4e0f2b58; Expires=Mon, 28-Feb-22 15:03:08 GMT; Domain=chriscoffee-dev.myshopify.com; Path=/; SameSite=Lax
Set-Cookie: _s=d087ea35-2a9b-45ca-a5bc-a91a8707743c; Expires=Sun, 28-Feb-21 15:33:08 GMT; Domain=chriscoffee-dev.myshopify.com; Path=/; SameSite=Lax
Set-Cookie: _shopify_y=d698f64c-bd9e-4fd9-b492-be2a4e0f2b58; Expires=Mon, 28-Feb-22 15:03:08 GMT; Domain=chriscoffee-dev.myshopify.com; Path=/; SameSite=Lax
Set-Cookie: _shopify_s=d087ea35-2a9b-45ca-a5bc-a91a8707743c; Expires=Sun, 28-Feb-21 15:33:08 GMT; Domain=chriscoffee-dev.myshopify.com; Path=/; SameSite=Lax
Set-Cookie: _shopify_fs=2021-02-25T16%3A23%3A15Z; Expires=Mon, 28-Feb-22 15:03:08 GMT; Domain=chriscoffee-dev.myshopify.com; Path=/; SameSite=Lax
CF-Cache-Status: DYNAMIC
cf-request-id: 088ac337080000e11a9422d000000001
Expect-CT: max-age=604800, report-uri=“https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct”
Server: cloudflare
CF-RAY: 628b07d1ab19e11a-IAD
alt-svc: h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400
Response Body
{“metafield”:{“id”:18765947895859,“namespace”:“specifications”,“key”:“width”,“value”:“31”,“value_type”:“string”,“description”:null,“owner_id”:4340467957811,“created_at”:“2021-02-25T13:04:17-05:00”,“updated_at”:“2021-02-25T13:04:17-05:00”,“owner_resource”:“product”,“admin_graphql_api_id”:“gid://shopify/Metafield/18765947895859”}}
Show raw log
JSONError: No data, empty input at 1:1 ^