update_item() — fastapi Function Reference
Architecture documentation for the update_item() function in tutorial004_an_py310.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 73aa607a_66cd_07de_ee2e_22442696b579["update_item()"] b071a576_8796_cdd9_9c82_8c57ecf30913["tutorial004_an_py310.py"] 73aa607a_66cd_07de_ee2e_22442696b579 -->|defined in| b071a576_8796_cdd9_9c82_8c57ecf30913 style 73aa607a_66cd_07de_ee2e_22442696b579 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
docs_src/schema_extra_example/tutorial004_an_py310.py lines 17–43
async def update_item(
*,
item_id: int,
item: Annotated[
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_an_py310.py.
Where is update_item() defined?
update_item() is defined in docs_src/schema_extra_example/tutorial004_an_py310.py at line 17.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free