Skip to main content

Bulk Review Attribute Suggestions

POST 

/api/v2/attribute-suggestions/bulk

Apply a review decision to the style groups of the given rows (ids are row ids from List Product Attribute Suggestions). The decision applies to every product in each group.

Required scope: products:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

  • accept - write the suggested value to every member whose attribute is still empty (members filled meanwhile become stale). Setting print also sets print_vs_solid (Solid or Print).
  • reject - mark pending/stale rows rejected; a later run will not offer the same value again.
  • set_value - change the value (must be an accepted value of the attribute, or a synonym of one), then accept.
  • revert - undo accepted / auto-applied rows: each product's value is cleared only while it is still the value that was written.

Fields:

  • ids (array of integers, 1-1000) — required unless apply_to_all
  • apply_to_all (boolean) + filters (object) — instead of ids: every row matching the queue's filters (the same filters as the queue, keyed by bare column name such as status, band or search, plus filter_groups), applied in chunks. At most 10,000 group decisions. set_value needs the filters to cover a single attribute. To accept every pending High suggestion matching some filters, send apply_to_all with band: high and status: pending added to them.
  • action (required: accept | reject | set_value | revert)
  • value (required for set_value, string)

Large selections run as a tracked job. When apply_to_all matches more than 500 group decisions, nothing is applied on the request: the response is 202 Accepted with {action, queued: true, groups, tracked_job_log_id, job_name: "Review attribute suggestions"} and the decision is applied in chunks by a tracked job; follow it with tracked_job_log_id. Otherwise the response is 200 with the summary and queued: false. Values are only ever written to products whose attribute is still empty at write time (a locked fill-if-empty), so a value written concurrently by someone else or an import is kept and that member goes stale.

Authentication: Requires Bearer token.

Requires permission: products.update

Request​

Responses​

OK

Response Headers
    Content-Type