Skip to main content

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.

Required scope: integrations:write

Grant 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 (leave discards them, review makes them wait for approval, push lets them go out).
  • runs (object, optional) — keyed by field, the run of 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​

OK

Response Headers
    Content-Type