API Testing · Junior · Question 6 of 75
What is the difference between PUT and PATCH?
- 1
PATCHis the old name ofPUTin HTTP/1.0 - 2
PUTreplaces the whole resource,PATCHchanges some fields - 3
PUTcreates resources,PATCHonly deletes them
Show the answer
Correct answer: PUT replaces the whole resource, PATCH changes some fields
Explanation
Sending PUT with only one field may wipe the others, depending on the API. Testers check what happens to fields left out.