v1

latestSwagger 2.0MIT2026-07-17233380637.0 KB
Ecommerce

Create categories in batch

post/categories/batch

Request body

updateEnabledboolean

Facilitate to update the existing categories in the same request (updateEnabled = true)

Example request

{
  "categories": [
    {
      "id": "CAT123",
      "name": "Electronics",
      "url": "http://mydomain.com/category/electronics",
      "deletedAt": "2017-05-12T12:30:00.000+0000",
      "isDeleted": true
    }
  ]
}

Response

Category created and updated

createdCountinteger

Number of the new created categories

updatedCountinteger

Number of the existing categories updated

Example response

{
  "updatedCount": 5,
  "createdCount": 7
}