Home / Function/ update_item() — fastapi Function Reference

update_item() — fastapi Function Reference

Architecture documentation for the update_item() function in items.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  a896bb0f_a0b2_b95e_b22c_42f5398487fd["update_item()"]
  f8da3411_723e_0a0b_93ab_a9759a2c1248["items.py"]
  a896bb0f_a0b2_b95e_b22c_42f5398487fd -->|defined in| f8da3411_723e_0a0b_93ab_a9759a2c1248
  style a896bb0f_a0b2_b95e_b22c_42f5398487fd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

docs_src/bigger_applications/app_py39/routers/items.py lines 33–38

async def update_item(item_id: str):
    if item_id != "plumbus":
        raise HTTPException(
            status_code=403, detail="You can only update the item: plumbus"
        )
    return {"item_id": item_id, "name": "The great Plumbus"}

Domain

Subdomains

Frequently Asked Questions

What does update_item() do?
update_item() is a function in the fastapi codebase, defined in docs_src/bigger_applications/app_py39/routers/items.py.
Where is update_item() defined?
update_item() is defined in docs_src/bigger_applications/app_py39/routers/items.py at line 33.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free