Bulk Upsert Metafields
Upsert N metafields in a single request. This is what powers the the admin “Save” button on resource detail pages — when a merchant edits multiple metafields and clicks save, the editor sends one bulk request instead of N individual calls.Request
Auth
Merchant JWT (owner, or staff with admin/manager access).Body
array
required
Array of metafield objects. Each item has the same shape as
POST /metafields.(owner type, namespace, key, owner). If one item fails
validation, the others still proceed (per-item error reporting in the
response).
Response
When every item succeeds: HTTP200 with state: "success" and an
empty errors array. When some items fail: HTTP 207 (Multi-Status)
with state: "partial" — successful rows in data.metafields, failures
in data.errors.