---
search:
  tags:
    - Variants
    - PUT
seo:
  description: >-
    Updates or creates stock quantities for multiple… Reference for the PUT
    /api/v1/{team_slug}/{app_slug}/variants/stock/bulk endpoint in the
    Management API.
sidebar:
  label: Set Stock for Multiple Variants
  badge: PUT
title: Set Stock for Multiple Variants
type: openapi-operation
---
Updates or creates stock quantities for multiple product variants across different warehouses in a single bulk operation. Each item in the request specifies a variant ID, warehouse slug, and the new stock quantity with an optional inventory date. Returns lists of successful and failed operations.

`PUT /api/v1/{team_slug}/{app_slug}/variants/stock/bulk`

**Request body** (`application/json`, required)

Stock data to set

- `items` (internal_pkg_webserver_v1.BulkSetStockItem[], required)

Request body example:

```json
{
  "items": [
    {
      "inventory_date": "string",
      "quantity": 0,
      "variant_id": "string",
      "warehouse_slug": "string"
    }
  ]
}
```

**Responses**

- `200` — Stock set successfully
- `400` — Invalid request
- `401` — Unauthorized access
- `500` — Internal server error

Response example, 200:

```json
{
  "data": {
    "failed_sets": [
      {
        "reason": "string",
        "variant_id": "string",
        "warehouse_slug": "string"
      }
    ],
    "successful_sets": [
      {
        "available_online": true,
        "created_at": "string",
        "id": "string",
        "inventory_date": "string",
        "quantity": 0,
        "updated_at": "string",
        "warehouse_name": "string",
        "warehouse_slug": "string"
      }
    ]
  },
  "details": [
    "string"
  ],
  "success": true
}
```
