---
title: "Create categories in batch"
method: POST
path: "/categories/batch"
tags: ["Ecommerce"]
---

# Create categories in batch

`POST /categories/batch`

## Request body

- CreateUpdateBatchCategory
  - `categories` CreateUpdateCategories[], required — array of categories objects
    - `id` string, email, required — Unique Category ID as saved in the shop
    - `name` string — **Mandatory in case of creation**. Name of the Category, as displayed in the shop
    - `url` string — URL to the category
    - `deletedAt` string — UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) of the category deleted from the shop's database
    - `isDeleted` boolean — category deleted from the shop's database
  - `updateEnabled` boolean — Facilitate to update the existing categories in the same request (updateEnabled = true)

## Response `201`

Category created and updated

- CreateUpdateBatchCategoryModel
  - `createdCount` integer — Number of the new created categories
  - `updatedCount` integer — Number of the existing categories updated

## Other responses

- `400` — bad request

---

[API](https://skmtc.net/getbrevo/apis/brevo-api.md) · [All operations](https://skmtc.net/getbrevo/apis/brevo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getbrevo/brevo-api/versions/2aec3cf66501/schema)
