Ecommerce

Create categories in batch

post/categories/batch

Request

  • Base URL: https://api.brevo.com/v3
  • URL: https://api.brevo.com/v3/categories/batch
  • Auth: one of:
    • API key in header api-key
    • API key in header partner-key

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
}

Changes

No recorded changes to this operation across all 2 revisions of this API.