Custom API for updating products

hey how did you update the product endpoint when it only takes id as a parameter