liveBook · Manning

HTTP PUT method

Also called PUT request

The HTTP PUT method requests that the target resource be created or have its state replaced with the representation supplied in the request.

How 10 Manning books explain it

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.

Read how Django in Action explains HTTP PUT method →

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 replacement, updates, and consumer-addressed creation to HTTP operations.
How deep it goes
Explains URI choice, replacement inputs, success statuses, idempotency, and compatibility; defers deeper implementation choices.
Examples
Uses product creation and replacement, a transaction’s checked flag, and an address endpoint whose method changes.
What you can do after
Evaluate/understand it: choose PUT or alternatives for an API operation while accounting for identifiers, payload size, and existing consumers.

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 →

Grokking Software Architecture

PUT is an HTTP method for creating or replacing the representation of a resource at a specified target URI.

How it is used
Uses a resource URI to create or replace its representation and make updates safe to retry.
How deep it goes
Explains PUT as an idempotent update, then applies it to retries and an UPSERT-style payment contract.
Examples
Uses repeatedly setting an order to Shipped and retrying a payment request with a transaction ID.
What you can do after
Apply PUT to updates that must tolerate retries, including transaction-ID payment contracts designed to avoid duplicate charges.

Read how Grokking Software Architecture explains HTTP PUT method →

Spring Start Here, Second Edition

PUT is the HTTP method for creating or completely replacing the representation of a resource at a specified target URI.

How it is used
Defines PUT as an HTTP method and places it among methods relevant to distinguishing controller actions on the same path.
How deep it goes
Limits treatment to asking what PUT means, without showing a request or implementation.

Read how Spring Start Here, Second Edition explains HTTP PUT method →

Also covered in

What to know first

Related concepts

Questions about HTTP PUT method

What is HTTP PUT method?

The HTTP PUT method requests that the target resource be created or have its state replaced with the representation supplied in the request.

Which Manning books explain HTTP PUT method?

Django in Action, Building User-Friendly DSLs, Pro ASP.NET Core 7, Tenth Edition, Building Web APIs with ASP.NET Core, The Design of Web APIs, Second Edition, Spring in Action, Sixth Edition, Learn Go with Pocket-Sized Projects, Acing the CCNA Exam: Volume 2 Advanced Networking and Security and 2 more.

What should I know before learning HTTP PUT method?

Manning books that teach HTTP PUT method usually introduce JSON, HTTP, HTTP status code and REST first.

What is the difference between HTTP PUT method and PATCH?

The HTTP PUT method requests that the target resource be created or have its state replaced with the representation supplied in the request. PATCH is an HTTP request method for applying partial modifications to a resource.

What is HTTP PUT method a kind of?

HTTP PUT method is a kind of HTTP method. An HTTP method is a standardized token in an HTTP request that indicates the operation the client intends to perform on a resource.

What is HTTP PUT method part of?

HTTP PUT method is part of HTTP. HTTP is an application-layer protocol that defines request-and-response communication for transferring resource representations and related metadata 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.