Documentation Index
Fetch the complete documentation index at: https://docs.launchmystore.io/llms.txt
Use this file to discover all available pages before exploring further.
Bulk Upsert Metafields
Upsert N metafields in a single request. This is what powers the TeamInfra “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 (MERCHANT, STAFF_ADMIN, SUPER_ADMIN, MANAGER).
Body
Array of metafield objects. Each item has the same shape as
POST /metafields.(storeId, ownerType, namespace, key, ownerId). If one item fails
validation, the others still proceed (per-item error reporting in the
response).
Response
Cache invalidation
The cache invalidation chain fires once after the whole batch completes — not once per row. This avoids 50× SCAN+DEL round trips for a 50-item save. The bulk call is a single Redis invalidation followed by a single fire-and-forget POST to the LaunchMyStore frontend’s/api/internal/invalidate-page-cache endpoint.
Error codes
| Code | Description |
|---|---|
UNAUTHORIZED | Invalid or missing JWT |
FORBIDDEN | Wrong store / insufficient role |
VALIDATION_ERROR | Top-level body shape is wrong (per-row errors are returned in results[]) |