food

Update a food's associated user ids based on assignment

Changed on

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

Request

  • Base URL
    https://api.rxfoodapp.com/api
  • URL
    https://api.rxfoodapp.com/api/food/assign_task
  • Auth
    HTTP bearer

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

    • info

      added the new optional query request parameter rxfood_id

    • info

      the query request parameter food_name became optional