---
title: "Update a food's associated user ids based on assignment"
method: PATCH
path: "/food/assign_task"
tags: ["food"]
---

# Update a food's associated user ids based on assignment

`PATCH /food/assign_task`

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.

## Query parameters

- `food_name` string
- `rxfood_id` string

## Request body

- FoodAssignmentRequest
  - `reviewed_by_user_id` number, nullable
  - `scraped_by_user_id` number, nullable

## Response `200`

successful operation

- FoodAssignmentResponse
  - `assigned_to_user_id` number, required
  - `food` string, required
  - `next_status` string, required

## Changes

- **2026-09-24** `750cc0d96a93` — 2 info
  - added the new optional `query` request parameter `rxfood_id`
  - the `query` request parameter `food_name` became optional

[Change history](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/changes/food/assign_task/patch.md)

---

[API](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server.md) · [All operations](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/llms.txt) · [OpenAPI document](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/revisions/750cc0d96a93?raw)
