All jobs / Backend developer / API Development

Backend developer interview question · 1–3 years

The interviewer asks: “PUT versus PATCH?” Strongest answer?

The strongest answer

PUT replaces the resource with the body I send (idempotent full document). PATCH applies a partial update. I don't overload PUT with “only the fields I included.”

Why it works

Exactly. Clients and caches treat PUT as “this is the new representation.” Partial PUT is how you wipe fields you didn't mean to send.

What a good answer covers

Answers that fall short

Who gets asked this

More API Development questions