---
title: "Create/Update a category"
method: POST
path: "/categories"
tags: ["Ecommerce"]
---

# Create/Update a category

`POST /categories`

## Request body

- CreateUpdateCategory
  - `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
  - `updateEnabled` boolean — Facilitate to update the existing category in the same request (updateEnabled = true)
  - `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

## Response `201`

Category created

- CreateCategoryModel
  - `id` integer — ID of the category when a new category is created

## Other responses

- `204` — Category updated
- `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)
