Skip to main content

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

NameTypeDescription
iduuid.UUIDThe unique identifier of the item to be updated.
item_inItemUpdateThe data object containing the fields to be updated for the item.
sessionSessionDepThe database session dependency used for persistence.
current_userCurrentUserThe currently authenticated user performing the request.

Request Body

FieldTypeDescription
titlestringThe updated title of the item.
descriptionstringThe updated description of the item.

Response

StatusDescription
200The item was successfully updated and returned. Returns ItemPublic.
403The user does not have permission to update this item. Returns null.
404The item with the specified ID was not found. Returns null.