Which HTTP method is used to update a resource with new values?

Dinesh Yadav 20 Reputation points
2025-06-18T10:06:50.8166667+00:00

Microsoft Certified: Azure Developer Associate - Exam AZ-204

There is a question in the Learning Path 6 (Module 4) in the module assessment:

Which HTTP method is used to update a resource with new values?
And the correct answer for this is shown as PATCH

However, according to Copilot and other resources, it should be PUT.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,695 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Mark Dicks 565 Reputation points
    2025-06-18T11:50:55.32+00:00

    Correct Answer: PATCH

    According to the official Microsoft learning materials, including the AZ-204 Learning Path, PATCH is the correct answer for partially updating a resource. This is why it's selected as the correct answer in the assessment.

    PATCH since the question is worded as "update a resource with new values."

    If it said "replace a resource entirely" then PUT would be correct.

    In RESTful APIs (especially those using ASP.NET or Azure Functions), it's best practice to:

    • POST to create,
    • GET to retrieve,
    • PUT to fully replace,
    • PATCH to update only parts of an existing resource.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.