PUT vs PATCH - API Platform Discovery Training
The PUT and PATCH methods have different meanings:
- PUT, replaces the data with that which is sent in the request.
- PATCH, allows the partial modification of a resource by merging the data sent with the data already present or through the use of modification operation.
In fact, API Platform processes requests PUT in the same way as requests PATCH and if a data is not sent it will not be deleted (it therefore merges the information). However, if you want to follow the specs, I advise you to distinguish well and use the correct method in your client application.