# Update Recipe Allergens

{/* 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 allergen rows and their cross-contact (may contain) list in one change, and returns the updated record. `rows` answers only the rows it names (`contains` with `species` where the list requires one, `not_present`, or `not_answered` to clear an answer). `cross_contact`, when sent, replaces the person's list; left out, the stored list is kept. Send at least one of them.

The answers and the list are checked together as the state the change leaves, so an allergen can move from `contains` to the cross-contact list while another moves the other way. An allergen cannot be both `contains` and on the list, a row an ingredient declares `contains` cannot be answered `not_present`, and species rules apply. Saves one new version, or nothing when nothing changes, and is saved whole or not at all. Send the recipe's current `version_id` in the `If-Match` header. A change makes an earlier confirmation of the record stale.
