Update Field Mappings
PUT/api/storefront/instances/:id/mappings
Replace this instance's custom field mappings wholesale. Whatever you send becomes the complete custom set; a mapping you leave out is gone, and the default for that target applies again.
This endpoint currently requires session authentication; Personal Access Token scope support is in progress.
Body — every rule:
mappings(required, array) — must be present and non-empty. An empty array is rejected, so this endpoint cannot be used to clear every mapping at once.mappings[].listing_field(required, string) — the store-side source. Use avaluefromavailable_storefront_fieldson Get Field Mappings.mappings[].sku_field(required, string) — the SKU.io target. Use avaluefromavailable_sku_fields: a core or dimension field,price.{level name}.value, orattributes.{attribute name}. An id-suffixed target such asproduct_pricing_tier_3is not a real target — it would be stored and then ignored at import.mappings[].parsers(optional, nullable, array) — transforms applied to the source value in order. Send[]for none.
A custom mapping overrides the default that targets the same sku_field; targets no default covers are simply added. The response returns the stored set and the recomputed effective set.
Permission: integrations.update.
Authentication: Bearer token (session or PAT).
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.