PUT /utils/{id}
Update an item.
Updates the details of an existing item. Only the owner of the item or a superuser can perform this action.
Endpoint
PUT /utils/{id}
Parameters
| Name | Type | Description |
|---|---|---|
| id | uuid.UUID | The unique identifier of the item to be updated. |
| item_in | ItemUpdate | The data object containing the fields to be updated for the item. |
| session | SessionDep | The database session dependency used for persistence. |
| current_user | CurrentUser | The currently authenticated user performing the request. |
Request Body
| Field | Type | Description |
|---|---|---|
| title | string | The updated title of the item. |
| description | string | The updated description of the item. |
Response
| Status | Description |
|---|---|
| 200 | The item was successfully updated and returned. Returns ItemPublic. |
| 403 | The user does not have permission to update this item. Returns null. |
| 404 | The item with the specified ID was not found. Returns null. |