Decide Content First Match
POST/api/integration-instances/:integrationInstance/content-sync/first-match/decide
Record what happens to the differences found by a field's first match, then carry it out in the background. The field then goes out automatically from here on.
integrations:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Body parameters:
decisions(object, required, min 1 entry) — keyed by field (barcode, mpn, name, brand, product_type, attributes, images, weight, dimensions, unit_cost, pricing, supplier_pricing), each one of:push— send SKU.io's value to every channel product that differs.leave— keep the channel's current values; only later edits in SKU.io go out.review— queue each difference as a change waiting for approval. Changes held while automatic updates were off follow the same decision (leavediscards them,reviewmakes them wait for approval,pushlets them go out).
runs(object, optional) — keyed by field, therunof the comparison the decision answers (from Get Content First Match). When the field was compared again since, nothing is recorded and the request is rejected with a 422 (The comparison changed meanwhile.).
Each field is applying until its decision is carried out, then decided. A field whose comparison is not ready is rejected with a 422 (Compare this field first.), as is an unknown field or decision. Returns the connection's content sync settings as now stored, in the shape of Get Content Sync Settings.
Requires integrations.manage_content_sync. Authentication: Requires Bearer token. Scope: integrations:write.
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 Content
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.