Which HTTP method is idempotent and used to update a resource ?

2026

Which HTTP method is idempotent and used to update a resource ?

  1. A.

    POST

  2. B.

    GET

  3. C.

    PUT

  4. D.

    PATCH

Attempted by 184 students.

Show answer & explanation

Correct answer: C

PUT is idempotent and used to fully update a resource. POST creates resources, GET retrieves them, and PATCH partially updates.

Explore the full course: Niacl Ao It Specialist