Sign in

Create product metafield

documented

Create a metafield on a product.

POST /admin/api/2026-01/products/{product_id}/metafields.jsonProductsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://{{$shop_domain}}.myshopify.com/admin/api/2026-01/products/{{$product_id}}/metafields.json" \
  -X POST \
  -H "X-Shopify-Access-Token: {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"metafield": {"namespace": "{{$namespace}}", "key": "{{$key}}", "value": "{{$value}}", "type": "{{$type}}"}}'