food

Update a food's associated user ids based on assignment

Identify the food with exactly one of rxfood_id or food_name; sending neither or both returns 400. rxfood_id is preferred and matches a food of any nutrition source. food_name is legacy, only matches the "usda" food with that name, and will be deprecated once the Auditor sends rxfood_id.

patch/food/assign_task

Query parameters

food_namestring
rxfood_idstring

Request body

reviewed_by_user_idnumber nullable
scraped_by_user_idnumber nullable

Response

successful operation

assigned_to_user_idnumber required
foodstring required
next_statusstring required

Changes

Changed in 1 of the 15 revisions of this API.2

    • ○

      added the new optional query request parameter rxfood_id

      new-optional-request-parameter

    • ○

      the query request parameter food_name became optional

      request-parameter-became-optional