# Answer Recipe Allergen Rows

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

Records a person's answers for one or more allergen rows of the recipe and returns the updated record. Each item names an allergen `code` and a `state`: `contains` (with `species` where the list requires one), `not_present`, or `not_answered` to clear the person's answer. Saves one new version for all of them, or nothing when every answer is already stored.

A row an ingredient declares `contains` cannot be answered `not_present`, and an allergen on the cross-contact list cannot be answered `contains`. The answers are saved together or not at all. Send the recipe's current `version_id` in the `If-Match` header. Changing an answer makes an earlier confirmation of the record stale.
