MCPcopy Create free account
hub / github.com/fastapi/fastapi / update_item

Function update_item

docs_src/body_multiple_params/tutorial003_py310.py:20–22  ·  view source on GitHub ↗
(item_id: int, item: Item, user: User, importance: int = Body())

Source from the content-addressed store, hash-verified

18
19@app.put("/items/{item_id}")
20async def update_item(item_id: int, item: Item, user: User, importance: int = Body()):
21 results = {"item_id": item_id, "item": item, "user": user, "importance": importance}
22 return results

Callers

nothing calls this directly

Calls 1

BodyClass · 0.90

Tested by

no test coverage detected