Actualizar Producto
PATCH
/api/products/update
PATCH
/api/products/update
Actualizar un producto.
{
id: number,
name?: string,
price?: number,
categories?: string[]
}
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”object
id
integer
price
integer
Example
{ "id": 1, "price": 800000}
Responses
Section titled “ Responses ”SUCCESS
Headers
Section titled “Headers ”
Vary
string
Example
Origin
Access-Control-Allow-Credentials
boolean
Example
true
Content-Length
integer
Example
154
ETag
string
Example
W/"9a-qjMsXLu8wOpWhqG8XFU3DNKC23A"
Date
string
Example
Thu, 11 Dec 2025 19:02:19 GMT
Connection
string
Example
keep-alive
Keep-Alive
string
Example
timeout=5
VALIDATION_ERROR
Headers
Section titled “Headers ”
Vary
string
Example
Origin
Access-Control-Allow-Credentials
boolean
Example
true
Content-Length
integer
Example
84
ETag
string
Example
W/"54-H3n/UH9GlS6fEhgDlCxUviRIy5k"
Date
string
Example
Thu, 11 Dec 2025 19:04:40 GMT
Connection
string
Example
keep-alive
Keep-Alive
string
Example
timeout=5
UNAUTHORIZED
Headers
Section titled “Headers ”
Vary
string
Example
Origin
Access-Control-Allow-Credentials
boolean
Example
true
Content-Length
integer
Example
49
ETag
string
Example
W/"31-745jFqqEU0VFC/rtfxiNcpDpdss"
Date
string
Example
Thu, 11 Dec 2025 18:21:10 GMT
Connection
string
Example
keep-alive
Keep-Alive
string
Example
timeout=5
NOT_FOUND
Headers
Section titled “Headers ”
Vary
string
Example
Origin
Access-Control-Allow-Credentials
boolean
Example
true
Content-Length
integer
Example
80
ETag
string
Example
W/"50-wXoIzEGeK+I7/FqZOqHDKDjmT3Y"
Date
string
Example
Thu, 11 Dec 2025 19:05:06 GMT
Connection
string
Example
keep-alive
Keep-Alive
string
Example
timeout=5