# Confirm Added Sugars

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

Records that a person reviewed the recipe's Added Sugars report and accepts it. Once confirmed, the Added Sugars line appears on the recipe's nutrition label and in its nutrition analysis. Send the `report_hash` of the report the person was shown and the recipe's current `version_id` as `If-Match`.

The request is refused when the hash is not the current report's (the report changed since it was read), when the report still has unanswered rows or findings, or when the recipe changed since `If-Match`. Adding, removing or swapping an ingredient (or a custom ingredient's version), changing the demographic or changing an answer afterwards makes the confirmation stale and it must be given again. Changing a quantity, a serving size or the number of servings does not: amounts, declarations and the label are recomputed, and a quantity that would push added sugars above total sugars is still refused.

Confirming records the person's attestation, who is taken from the credentials and the channel from how the request arrived. An agent must only call this after the person has asked it to confirm the report. Repeating a request for a report that is already confirmed records nothing new and returns the existing confirmation.
