liveBook · Manning

HTTP PUT method

As explained in Acing the CCNA Exam: Volume 2 Advanced Networking and Security

PUT is an HTTP method that replaces a specified resource with supplied content and can also create a resource in some API designs.

PUT is an HTTP method for replacing a specified resource with supplied content. Although commonly mapped to CRUD update operations, an API may also use PUT to create a resource; its documentation defines the exact behavior. section 23.2.1

Distinguish PUT from related HTTP methods:

  • Use PUT to replace the specified resource. section 23.2.1
  • Use PATCH to modify a resource without replacing it. section 23.2.1
  • Treat POST as the usual creation method, while checking API documentation because method-to-CRUD mappings are not one-to-one. section 23.2.1

How Acing the CCNA Exam: Volume 2 Advanced Networking and Security covers it

How deep it goes
Explains replacement semantics and the creation exception, but defers exact behavior to each API’s documentation.
Examples
Uses a CRUD comparison table to contrast PUT with POST, GET, PATCH, and DELETE.
What it assumes
Assumes HTTP request structure and CRUD terminology while distinguishing methods from their usual resource actions.
What you can do after
Evaluate whether an API uses PUT for replacement or creation by consulting its documented method semantics.
How it connects
Connects PUT with HTTP, REST APIs, CRUD, POST, GET, PATCH, DELETE, resources, and URIs.

Also explained in

Compare how 8 books explain HTTP PUT method →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Acing the CCNA Exam: Volume 2 Advanced Networking and Security. The section links point to the parts of the book it draws on.