Reviewer feedback
Approve, reject or correct a product's values, and have the next run learn from it.
When your own team reviews what Fabric wrote, send their verdicts back in one call per product. Fabric applies them, remembers each rejection, and can re-enrich the product with that feedback.
curl -X POST "https://fabric.inc/api/v1/brands/$BRAND/products/$PRODUCT/feedback" \
-H "Authorization: Bearer $FABRIC_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"items": [
{ "attributeId": "cmx1color", "verdict": "reject", "note": "It is navy; the variant name says so." },
{ "attributeId": "cmx1material", "verdict": "approve" },
{ "faqId": "cmx1faq3", "verdict": "correct", "value": "Machine wash cold, hang dry." }
],
"reenrich": true
}'Verdicts
Each item names one target: an attributeId, a faqId, "description": true, or an imageId for
that image's alt text. Then one verdict:
| Verdict | What it does |
|---|---|
approve | Clears the judge's flag and records the value as approved. Later runs score similar values on similar products as supported. It does not lock the value: see what a re-run keeps. Not available for alt text, which is not judged. |
reject | Removes a value Fabric wrote and remembers it. The next run is shown the rejected value and your note, and never writes that value again for this product and target. |
correct | Writes value as a person's edit. Enrichment and imports never overwrite it. |
A note is optional on every verdict. It is kept in the value's history, and on a rejection the next
run reads it, so say what is wrong: "It is navy; the variant name says so" helps more than "wrong".
A call takes at most 100 items, and a note at most 2,000 characters.
A rejection stays in force until a person sets or approves a value for that target, through this endpoint or in Fabric.
Only a value Fabric wrote can be approved or rejected: one whose provenance is ai and whose
enrichment is not null. To change a value your catalog or your team supplied, send correct, or
send the new value in your next PUT. To keep a value Fabric wrote exactly as it is, send correct
with its current text. A value Fabric copies from another on every run (into a (Filter) attribute, a
second SEO column, a FAQ column) cannot be rejected either: reject the value it is copied from, and
its copies are removed with it.
When the note is about more than this product
A note like "never call our lustre prints glossy" is a rule, not a one-off. Give the item a
guideline scope and Fabric proposes one from it:
{
"attributeId": "cmx1finish",
"verdict": "reject",
"scope": "attribute",
"categoryId": "cmx1prints",
"note": "Lustre is not glossy. Never call a lustre print glossy."
}scope is product by default, which is this value only. Any other scope proposes a rule:
attribute, title, description, meta_title, meta_description, faq_question, faq,
image_alt or brand. Managing guidelines says what each one shapes. An
attribute rule needs the item's attributeId, and categoryId narrows a rule to that category and
everything under it.
The value is still rejected on this product. Fabric also infers a rule from the note and the value, and checks it against the brand's rules on the same scope:
guideline.outcome | What happened |
|---|---|
new | A new rule, created not applied |
deduplicated | A rule already says this; nothing new was created |
merged | A draft combining it with an existing rule, which it replaces once applied |
contradicts | It clashes with an existing rule; created as a draft, never applied automatically |
Rules from notes are created not applied. Send apply: true to apply a new or merged one in
the same call. staleProducts then counts the products it leaves stale. A wider scope needs a
note, since there is nothing else to infer a rule from, and it applies to reject and correct
only. For a correct, the rule is inferred from the value you replaced.
A call takes at most 10 items with a wider scope, and such a call also counts against the job
rate limit. The verdicts apply first: if a rule cannot be proposed, the item
carries guidelineError instead of guideline, and its verdict still stands. A brand that already
holds 100 guidelines gets guidelineError on every such item until one is deleted.
To list, apply, edit, re-enrich or delete a rule afterwards, see Managing guidelines.
All or nothing
Every item in a call applies, or none do. If any item cannot apply, the answer is 422 and
errors names each one by its position:
{
"code": "unprocessable",
"detail": "1 item(s) could not apply, so nothing was written.",
"errors": [
{ "path": "items.2", "message": "Only a value Fabric wrote can be rejected. Correct a value a person or the merchant wrote instead." }
]
}Fix those items and send the call again. Send one verdict per target in a call; two items on the same value are refused.
Re-enriching
reenrich: true starts an enrichment run for the product once the items apply. It costs 1
credit, needs the enrichment:write scope, and counts against the
rate limit for enrichment, like any run.
Send reenrich: true once, with the last of a product's feedback, not on every call. One run
then reads every rejection and note for the product together, and you spend one credit instead of
several.
The answer carries the run's id in enrichmentRun, and the run reports through the same webhooks
as any other. If the run is refused, for example for lack of credits, the items still applied: the
answer is 200 with enrichmentRun: null and a reenrich object saying why.
Retries
Every feedback call needs an Idempotency-Key. A retry with the same key returns the first answer
and applies nothing again. See Retrying safely.