update_item() — fastapi Function Reference
Architecture documentation for the update_item() function in tutorial004_py310.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 07968908_56c8_844d_6c6a_5295ff0a18a2["update_item()"] 9ccf72e5_7ba7_c525_0a29_0b5aca23ef3c["tutorial004_py310.py"] 07968908_56c8_844d_6c6a_5295ff0a18a2 -->|defined in| 9ccf72e5_7ba7_c525_0a29_0b5aca23ef3c style 07968908_56c8_844d_6c6a_5295ff0a18a2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
docs_src/schema_extra_example/tutorial004_py310.py lines 15–38
async def update_item(
*,
item_id: int,
item: Item = Body(
examples=[
{
"name": "Foo",
"description": "A very nice Item",
"price": 35.4,
"tax": 3.2,
},
{
"name": "Bar",
"price": "35.4",
},
{
"name": "Baz",
"price": "thirty five point four",
},
],
),
):
results = {"item_id": item_id, "item": item}
return results
Domain
Subdomains
Source
Frequently Asked Questions
What does update_item() do?
update_item() is a function in the fastapi codebase, defined in docs_src/schema_extra_example/tutorial004_py310.py.
Where is update_item() defined?
update_item() is defined in docs_src/schema_extra_example/tutorial004_py310.py at line 15.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free