API Testing · Junior · Question 69 of 75
How should you test a PATCH that updates a user's name?
- 1Check only that the response status is 200
- 2Check that the user was deleted and created again
- 3Check the name changed and other fields stayed the same
Show the answer
Correct answer: Check the name changed and other fields stayed the same
Explanation
Partial updates sometimes reset fields they shouldn't touch. A follow-up GET confirms the full state.