CS FundamentalsEasyProduct-company MCQ pattern

A REST client wants to change only the email field of an existing user resource without sending the whole resource. Which HTTP method fits best?

  1. A. PUT
  2. B. GET
  3. C. POST
  4. D. PATCH

Correct answer: D. PATCH

PATCH applies a partial update. PUT replaces the entire resource with the representation sent, so fields left out may be wiped.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic