> ## 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.

<ParamField path="app_id" type="string" required>
  Your store ID in Jelou Shop.
</ParamField>

<ParamField path="category_id" type="integer" required>
  ID of the category to update.
</ParamField>

<ParamField body="name" type="string">
  Category name (max. 255 characters).
</ParamField>

<ParamField body="description" type="string">
  Category description (max. 255 characters).
</ParamField>

<ParamField body="order" type="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".
</ParamField>

<ParamField body="status" type="boolean">
  Category status (active/inactive).
</ParamField>

<ParamField body="parent_id" type="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.
</ParamField>

<Note>
  The `name` must be unique within the same level (same store, parent category and branch). Duplicating it returns a `422` error.
</Note>

<RequestExample>
  ```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"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```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"
    }
  }
  ```
</ResponseExample>
