> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/products/llms.txt)
> Source: https://docs.saleor.io/api-reference/products/mutations/product-variant-stocks-create

# productVariantStocksCreate Mutation

Creates stocks for product variant.

Requires the MANAGE\_PRODUCTS permission.

Triggers the following webhook events:

-   PRODUCT\_VARIANT\_BACK\_IN\_STOCK (async): A product variant stock is created in a warehouse.
-   PRODUCT\_VARIANT\_BACK\_IN\_STOCK\_IN\_CHANNEL (async): A product variant is back in stock in a channel (non click-and-collect warehouses).

Note: Triggered only when the `useLegacyShippingZoneStockAvailability` shop setting is disabled.

-   PRODUCT\_VARIANT\_BACK\_IN\_STOCK\_FOR\_CLICK\_AND\_COLLECT (async): A product variant is back in stock in a channel (click-and-collect warehouses).

Note: Triggered only when the `useLegacyShippingZoneStockAvailability` shop setting is disabled.

```graphql
productVariantStocksCreate(
  stocks: [StockInput!]!
  variantId: ID!
): ProductVariantStocksCreate
```

Details

```graphql
type ProductVariantStocksCreate {
  productVariant: ProductVariant
  bulkStockErrors: [BulkStockError!]! @deprecated
  errors: [BulkStockError!]!
}
```

<a id="arguments"></a>

### Arguments

<a id="stocks"></a>

#### [`stocks`](#stocks) ● [`[StockInput!]!`](/api-reference/products/inputs/stock-input.md)

Input list of stocks to create.

<a id="variant-id"></a>

#### [`variantId`](#variant-id) ● [`ID!`](/api-reference/miscellaneous/scalars/id.md)

ID of a product variant for which stocks will be created.

<a id="type"></a>

### Type

<a id="productvariantstockscreate"></a>

#### [`ProductVariantStocksCreate`](/api-reference/products/objects/product-variant-stocks-create.md)

Creates stocks for product variant.

Requires the MANAGE\_PRODUCTS permission.

Triggers the following webhook events:

-   PRODUCT\_VARIANT\_BACK\_IN\_STOCK (async): A product variant stock is created in a warehouse.
-   PRODUCT\_VARIANT\_BACK\_IN\_STOCK\_IN\_CHANNEL (async): A product variant is back in stock in a channel (non click-and-collect warehouses).

Note: Triggered only when the `useLegacyShippingZoneStockAvailability` shop setting is disabled.

-   PRODUCT\_VARIANT\_BACK\_IN\_STOCK\_FOR\_CLICK\_AND\_COLLECT (async): A product variant is back in stock in a channel (click-and-collect warehouses).

Note: Triggered only when the `useLegacyShippingZoneStockAvailability` shop setting is disabled.
