Update multiple products
PUT/api/v2/catalog/products
Bulk update multiple products, this is particularly useful for updating the order of the products or bulk moving products between categories.
Request
- application/json
Body
array
required
Array [
]
Possible values: >= 12 characters
and <= 12 characters
, Value must match regular expression ^[0-9a-z]+$
Unique ID of the product
Section ID of the product
Possible values: non-empty
Name of the product
The SKU of the product
The reference code of the product
The photo URL of the product
The price of the product
Description of the product
Default value: true
Mark the product as not available
Default value: 0
Used to order the item, order defaults to ascending.
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 500
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Possible values: >= 12 characters
and <= 12 characters
, Value must match regular expression ^[0-9a-z]+$
Unique ID of the product
Category ID of the product
Section ID of the product
Possible values: non-empty
Name of the product
Possible values: non-empty
Slug of the product
Description of the product
The SKU of the product
The reference code of the product
The photo URL of the product
The price of the product
Default value: true
Mark the product as not available
Default value: 0
Used to order the item, order defaults to ascending.
[
{
"id": "bk8h0y2r68ke",
"category_id": "5m4v972ra9ue",
"section_id": "u7m4f8ep5nfi",
"name": "Pizza",
"slug": "pizza",
"description": "A delicious pizza",
"sku": "123456",
"ref_code": "123456",
"photo_url": "https://example.com/photo.jpg",
"price": "12.5",
"available": true,
"order": 1,
"created_at": "2024-07-29T15:51:28.071Z",
"updated_at": "2024-07-29T15:51:28.071Z"
}
]
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
HTTP status code
Error message
Possible values: [query
, body
, response
, param
]
Where in the request the error occurred
errors
object[]
required
Possible values: non-empty
Path to the property with the error
constraints
object
required
Error message
{
"statusCode": 404,
"message": "Cannot find item",
"location": "query",
"errors": [
{
"path": "business.id",
"constraints": {
"object_required_property": "Required property"
}
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}