Skip to main content

Fill Missing Attribute Values

POST 

/api/v2/attributes/:attribute_id/fill-missing

Suggest values for products without one, in the background, using AI (or keyword matching) on each style's title, description, tags and optionally images. Suggestions pick only from the attribute's option list and never overwrite a value; those at or above the auto-accept threshold are applied, the rest wait for review (List Attribute Suggestions with attribute_id).

Required scope: products:write

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

Request body:

  • scope (string, optional): all (default), best_sellers (top sellers of the last 90 days, limit of them) or brand
  • brand_id (integer, required when scope is brand)
  • limit (integer, optional, 1–5000, default 400)
  • use_images (boolean, optional)
  • engine (string, optional): auto | ai | keyword

Returns 422 when the attribute has no options or nothing matches the scope; engine=ai returns 422 when AI is not set up.

Scope: products:write. Requires the products.update permission.

Request​

Responses​

Accepted

Response Headers
    Content-Type