Bulk Update Categories
# Bulk Update Categories
Updates multiple categories simultaneously in a single bulk operation. Supports partial updates for up to 50 categories per request, including name, slug, parent, status, translations, and sort order modifications.
PATCH
/api/v1/{team_slug}/{app_slug}/categories/bulk
PurposeUpdates multiple categories simultaneously in a single bulk operation.
Required inputsteam_slug path app_slug path
Primary response200 ยท Categories updated successfully
Operation keymanagement-api:PATCH:/api/v1/{team_slug}/{app_slug}/categories/bulk
## API ownership
- API family: Management API
- Best for: Trusted back-office workflows that create, update, organize, or delete merchant-owned data.
- Do not use from: Browser-only storefront code or public clients.
- Guide route: [/apis/management/latest](/apis/management/latest)
The OpenAPI contract defines the method, path, parameters, request body, and responses for this operation.
## Operation
- Method: `PATCH`
- Path: `/api/v1/{team_slug}/{app_slug}/categories/bulk`
- Summary: Bulk Update Categories
- Description: Updates multiple categories simultaneously in a single bulk operation. Supports partial updates for up to 50 categories per request, including name, slug, parent, status, translations, and sort order modifications.
- OpenAPI contract:
management-api
- Operation ID: Not documented in the OpenAPI contract.
- Stable operation key: `management-api:PATCH:/api/v1/{team_slug}/{app_slug}/categories/bulk`
Operation key uses API family, method, and path because this OpenAPI contract does not publish an operation ID.
## Parameters
| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| team_slug | path | Yes | string | Team slug |
| app_slug | path | Yes | string | App slug |
## Request body
- Required: Yes
- Description: Categories data to update
- Content: application/json (object)
### Bulk Patch Categories Payload
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `categories` | object[] | Yes | maxItems: 50 |
#### Bulk Patch Category Item
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `childless` | boolean | No | - |
| `cover_id` | string | No | - |
| `google_product_category_id` | string | No | - |
| `id` | string | Yes | - |
| `name` | string | No | - |
| `parent_id` | string | No | - |
| `slug` | string | No | - |
| `sort_order` | integer | No | min: 0 |
| `status` | enum("active", "draft", "inactive") | No | - |
| `translations` | object | No | - |
#### Category Translations
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `name` | object[] | No | - |
| `slug` | object[] | No | - |
**Generated example (synthetic):**
```json
{
"categories": [
{
"childless": false,
"cover_id": "string",
"google_product_category_id": "string",
"id": "string",
"name": "string",
"parent_id": "string",
"slug": "string",
"sort_order": 0,
"status": "active",
"translations": {
"name": [],
"slug": []
}
}
]
}
```
## Responses
| Status | Description | Content |
| --- | --- | --- |
| 200 | Categories updated successfully | application/json (object) |
| 400 | Invalid request | application/json (object) |
| 401 | Unauthorized access | application/json (object) |
| 500 | Internal server error | application/json (object) |
### 200 - object
#### Bulk Patch Categories Response
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `data` | object | No | - |
| `details` | string[] | No | Additional contextual information about the response. Used to provide supplementary details beyond the main data payload, such as validation warnings or processing notes |
| `success` | boolean | No | - |
##### Bulk Patch Categories
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `failed` | object[] | No | - |
| `successful` | object[] | No | - |
##### Bulk Patch Failed Update
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `id` | string | No | - |
| `reason` | string | No | - |
##### Category
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `attributes` | object[] | No | - |
| `children` | object[] | No | - |
| `cover_url` | string | No | - |
| `created_at` | string | No | - |
| `google_product_category_id` | string | No | - |
| `id` | string | No | - |
| `name` | string | No | - |
| `parent_id` | string | No | - |
| `redirects` | object[] | No | - |
| `slug` | string | No | - |
| `sort_order` | integer | No | Used for ordering categories themselves |
| `status` | string | No | - |
| `translations` | object | No | - |
| `updated_at` | string | No | - |
| `uri` | string | No | - |
**Generated example (synthetic):**
```json
{
"data": {
"failed": [
{
"id": "string",
"reason": "string"
}
],
"successful": [
{
"attributes": [],
"children": [],
"cover_url": "string",
"created_at": "string",
"google_product_category_id": "string",
"id": "string",
"name": "string",
"parent_id": "string",
"redirects": [],
"slug": "string",
"sort_order": 0,
"status": "string",
"translations": {
"name": null,
"slug": null
},
"updated_at": "string",
"uri": "string"
}
]
},
"details": [
"string"
],
"success": false
}
```
### 400 - object
#### Error Message
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `details` | string[] | No | - |
| `message` | string | No | - |
| `success` | boolean | No | - |
**Generated example (synthetic):**
```json
{
"details": [
"string"
],
"message": "string",
"success": false
}
```
### 401 - object
#### Error Message
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `details` | string[] | No | - |
| `message` | string | No | - |
| `success` | boolean | No | - |
**Generated example (synthetic):**
```json
{
"details": [
"string"
],
"message": "string",
"success": false
}
```
### 500 - object
#### Error Message
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `details` | string[] | No | - |
| `message` | string | No | - |
| `success` | boolean | No | - |
**Generated example (synthetic):**
```json
{
"details": [
"string"
],
"message": "string",
"success": false
}
```
## Contract identity
Use these fields to confirm you are implementing the intended endpoint contract.
- API family: Management API
- Method: `PATCH`
- Path: `/api/v1/{team_slug}/{app_slug}/categories/bulk`
- Operation ID: Not documented in the OpenAPI contract.
- Stable operation key: `management-api:PATCH:/api/v1/{team_slug}/{app_slug}/categories/bulk`
- OpenAPI tag: Categories, Bulk
- OpenAPI summary: Bulk Update Categories