The update endpoint fully replaces theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ricpalomino/spring-boot/llms.txt
Use this file to discover all available pages before exploring further.
name and price of an existing product identified by its numeric ID. You must supply both fields in the request body — this is a full replacement, not a partial update. If the ID does not exist in the store, the API returns 404. If the request body fails validation, the API returns 400.
Path parameters
The numeric ID of the product to update. Must correspond to an existing product in the store.
Request body
The new product name. Must be between 3 and 100 characters and cannot be blank.
The new product price. Must be greater than 0 (minimum value: 1).
Request
Response fields
HTTP status code as a string (e.g.,
"200", "400", "404").Human-readable message describing the result.
The updated product object, or
null on error.Success response — 200
Validation error response — 400
Returned whenname is blank or out of range, or when price is less than 1. The data field contains a map of failing field names to their constraint violation messages.