HTTP PUT method
The HTTP PUT method requests creation or complete replacement of a resource representation at a specified target URI.
Django in Action
PUT is an HTTP method that requests creation or replacement of a resource representation at a specified URL.
- How it is used
- Updates REST resources by sending a complete object representation to an ID-based URL.
- How deep it goes
- Walks through a Django Ninja endpoint, payload schema, field loop, save operation, and PUT-versus-PATCH trade-off.
- Examples
- Uses `/api/song/42/` and a RiffMates venue endpoint that updates fields with `setattr()` and `save()`.
- What you can do after
- Build it from scratch as a Django Ninja endpoint that replaces an existing model object's submitted fields.
Building User-Friendly DSLs
An HTTP request method that replaces or creates the representation of a resource with request-provided content.
- How it is used
- Saves an edited AST from a DSL editor by replacing the persisted /contents representation.
- How deep it goes
- Implements client serialization and an Express handler, while deferring reliability and performance testing to later work.
- Examples
- Uses a Save button that sends a serialized Rental AST to /contents and verifies persistence by reload or file inspection.
- What you can do after
- Apply it via the Fetch API and Express to save a JSON-serialized AST resource.
Read how Building User-Friendly DSLs explains HTTP PUT method →
Pro ASP.NET Core 7, Tenth Edition
The HTTP PUT method requests replacement of a resource with the representation supplied by the client.
- How it is used
- Replaces a Product through an ASP.NET Core API action that updates the database.
- How deep it goes
- Shows request-body model binding and a runnable update test, while deferring detailed model binding and validation.
- Examples
- Tests a JSON replacement Product with PowerShell Invoke-RestMethod, then checks the products collection in a browser.
- What you can do after
- Apply it via ASP.NET Core MVC to receive a replacement Product and update the database.
Read how Pro ASP.NET Core 7, Tenth Edition explains HTTP PUT method →
Building Web APIs with ASP.NET Core
PUT is an HTTP request method for replacing a resource or creating it when it does not exist.
- How it is used
- Frames resource replacement and creation decisions within REST API method design.
- How deep it goes
- Defines replacement, creation, and idempotence, then stops short of implementing a PUT endpoint.
- Examples
- Uses a board-game update with a LastModifiedDate timestamp to demonstrate why POST can replace PUT.
- What you can do after
- Evaluate whether an update is idempotent and select PUT or POST accordingly.
Read how Building Web APIs with ASP.NET Core explains HTTP PUT method →
The Design of Web APIs, Second Edition
PUT is the HTTP method for replacing a resource representation or creating it at a specified URI when permitted by the server.
- How it is used
- Maps resource updates, replacements, and selected creations to HTTP operations in REST API design.
- How deep it goes
- Explains replacement inputs, returned state, creation status, idempotency, PATCH trade-offs, and compatibility consequences.
- Examples
- Uses product catalog paths, complete product replacements, client-supplied identifiers, and transaction flags to contrast PUT with alternatives.
- What you can do after
- Build it from scratch by mapping resource operations, choosing PUT or PATCH, defining replacement inputs, and returning the updated state.
Read how The Design of Web APIs, Second Edition explains HTTP PUT method →
Spring in Action, Sixth Edition
An HTTP PUT request sends a complete representation to a resource's URL, conventionally replacing the resource's existing representation.
- How it is used
- Uses complete client representations to replace server resources through REST controllers or RestTemplate clients.
- How deep it goes
- Explains replacement semantics, omitted properties, Spring mappings, request binding, persistence, and client serialization without covering framework internals.
- Examples
- Uses order replacement, order-address changes, TacoOrder controller code, and ingredient replacement through RestTemplate.
- What you can do after
- Apply it via Spring MVC or RestTemplate to send complete resource representations to URL endpoints.
Read how Spring in Action, Sixth Edition explains HTTP PUT method →
Learn Go with Pocket-Sized Projects
PUT is an HTTP request method conventionally used to create or fully replace the representation of a resource at a specified URI.
- How it is used
- Uses PUT to update an identified resource through an HTTP API endpoint.
- How deep it goes
- Defines update semantics, idempotence, paths, JSON bodies, and decoding errors, but does not detail storage internals.
- Examples
- Demonstrates PUT /games/123456 with a {"guess":"hello"} body and a Go handler decoding GuessRequest.
- What you can do after
- Apply it via Go's HTTP APIs to define, call, and validate an update endpoint carrying JSON.
Read how Learn Go with Pocket-Sized Projects explains HTTP PUT method →
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.
- How it is used
- Uses PUT to update a resource in REST API exchanges and, where documented, to create a resource.
- 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 you can do after
- Evaluate whether an API uses PUT for replacement or creation by consulting its documented method semantics.
Read how Acing the CCNA Exam: Volume 2 Advanced Networking and Security explains HTTP PUT method →
Related concepts
- HTTP methodkind of · An HTTP method is a standardized operation token in an HTTP request that specifies the intended action on a resource.
- PATCHcontrasts with · PATCH is an HTTP request method for applying partial modifications to a resource.
- request messagealternative to · An HTTP request is a message sent by a client to a server that specifies a method and target and may include headers and a body.
- CRUDused by · CRUD is the set of data-management operations for creating, reading, updating, and deleting records or resources.
- Elasticsearch indexproduces · An Elasticsearch index is a named, searchable collection of documents organized for querying and distributed across storage shards and replicas.
- HTTPpart of · HTTP is a standardized application-layer protocol that defines request-and-response messages for transferring resource representations between networked systems.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.







