# Answer One Added Sugars Row

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

Records your answer for one ingredient row of the recipe's Added Sugars report and returns the updated report in the same shape as reading it: `data` holds `report`, `report_hash` (the value confirming this report needs) and `confirmation`, and `version_id` is the new version. The row is named by its ingredient row id (`irow_...`), the id of one ingredient row of this recipe: two rows of one food have two row ids.

The `action` is one of `accept_suggestion`, `set_contribution`, `add_contribution`, `remove_contribution` or `keep`. For `set_contribution` and `add_contribution` give the amount either as `added_sugars_grams` (grams in this row at its current quantity) or as `added_sugars_per_100g` (grams per 100 g of the ingredient), never both: the server turns per-100 g into row grams at the row's current quantity. Each row of the report also carries the counted amount per 100 g (`added_sugars_per_100g`) so you never divide. A `reason` and a `supplier_reference` are optional on every action. Your answer is kept as you gave it, with the row's quantity at the time, the person and the channel. The row's counted grams, the totals, the declarations and the findings are recomputed from it.

An answer that puts a row's, the batch's or a serving's added sugars above its total sugars is rejected and nothing is saved. Nothing is ever lowered to fit.

Every answer saves one new version of the recipe, so an earlier confirmation of the report no longer applies and the Added Sugars line is taken off the recipe's nutrition and labels until the new report is confirmed. Send the recipe's current `version_id` in the `If-Match` header.
