Update product

What is it for?

Modifies the data of an existing product.

Conditions

  • Requires authentication.
  • Validations:
    • The product MUST exist in the system. If it does not:
    • Error: PRODUCT_NOT_FOUND (HTTP 404)
    • Message: "No product found with ID {id}."

Parameters

Fill in the fields in Body Params, Query Params and/or Path Params as applicable.

Expected response

HTTP 204 → No content (modificado correctamente)

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required
≥ 1

Product identifier

Body Params
string
length ≤ 255

Product name

string
length ≤ 255

Product description

number

Product cost

integer

Product category ID (if applicable)

string

Product image hash or identifier

number

Product length in centimeters (optional)

number

Product height in centimeters (optional)

number

Product width in centimeters (optional)

number

Product weight in kilograms (optional)

Responses
204

Product updated successfully

400

Invalid ID or malformed request

404

Product not found

422

Data validation or business rule error

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json