> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jelou.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update category

> Update the data of an existing category.

You only need to send the fields you want to update.

**app\_id** `string` *required*

Your store ID in Jelou Shop.

**category\_id** `integer` *required*

ID of the category to update.

**name** `string`

Category name (max. 255 characters).

**description** `string`

Category description (max. 255 characters).

**order** `integer`

Sort position (min. 0, max. 999999). Must be unique within the same level (app + parent category + branch). The value `0` is treated as "unordered".

**status** `boolean`

Category status (active/inactive).

**parent\_id** `integer`

Parent category ID (for hierarchy). Must exist in the same store. A category cannot be its own parent. Send `null` to make it a root category.

> [!NOTE]
>
> The `name` must be unique within the same level (same store, parent category and branch). Duplicating it returns a `422` error.

```bash cURL theme={null}
curl -X PATCH "https://gateway.jelou.ai/ecommerce/v2/apps/{app_id}/categories/{category_id}" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Artisan Pizzas",
    "description": "Our premium selection of wood-fired pizzas"
  }'
```

```json 200 OK theme={null}
{
  "data": {
    "id": 1,
    "name": "Artisan Pizzas",
    "image": "categories/664f1a2b3c4d5.jpg",
    "description": "Our premium selection of wood-fired pizzas",
    "order": 1,
    "status": true,
    "app_id": "8af29efb-9864-4f29-888c-b2dd0d7ac1dd",
    "branch_id": "9e3f2c1a-8b7d-4e6f-a5c4-d3b2a1e0f9c8",
    "parent_id": null,
    "created_at": "2026-02-19T15:30:00.000000Z",
    "updated_at": "2026-02-19T16:00:00.000000Z"
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.