Concept Flow - Updating documents
Receive HTTP PUT/PATCH request
Extract document ID and update data
Call database update method
Database finds document by ID
Update document
Send success response with updated document
The server receives an update request, finds the document by ID, updates it if found, and sends back the updated document or an error.