# Update warehouse product variant count.

`POST /api/warehouses/inventory-quantity/variants/{warehouseProductVariantId}`

Authentication (security requirement alternatives):

```json
[
  {
    "bearer": []
  }
]
```

- bearer: http (bearer), header JWT. Enter JWT token

Parameters:

- `warehouseProductVariantId` (path, string, required)
  Type: string

Responses:

- 200: Warehouse product variant count updated.

Content type: application/json

Type: object

Schema: [Warehouse](https://sourcey-gauzy.pages.dev/api-reference/models/warehouse/index.md)

- `deletedAt` (optional)
  Type: string, date-time
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `createdAt` (optional)
  Type: string, date-time
  
  The creation timestamp of the entity.
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `updatedAt` (optional)
  Type: string, date-time
  
  The last update timestamp of the entity.
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `id` (optional)
  Type: string

- `isActive` (optional)
  Type: boolean
  
  default: true

- `isArchived` (optional)
  Type: boolean
  
  default: false

- `archivedAt` (optional)
  Type: string, date-time
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `tenantId` (optional)
  Type: string

- `organizationId` (optional)
  Type: string

- `name` (required)
  Type: string

- `code` (required)
  Type: string

- `email` (required)
  Type: string

- `description` (required)
  Type: string

- `active` (optional)
  Type: boolean

- `logo` (required)
  Reference: [ImageAsset](https://sourcey-gauzy.pages.dev/api-reference/models/imageasset/index.md); Type: object

- `logoId` (required)
  Type: string

- `contactId` (required)
  Type: string

- `products` (required)
  Type: array
  
  Items:
    Reference: [WarehouseProduct](https://sourcey-gauzy.pages.dev/api-reference/models/warehouseproduct/index.md); Type: object

- 401: Unauthorized

- 403: Forbidden

- 404: Record not found

## Examples

### cURL

```bash
curl -X POST 'http://localhost:3000/api/warehouses/inventory-quantity/variants/string' \
  -H 'Authorization: Bearer YOUR_TOKEN'
```

### JavaScript

```javascript
const response = await fetch('http://localhost:3000/api/warehouses/inventory-quantity/variants/string', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_TOKEN',
  },
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.post(
    'http://localhost:3000/api/warehouses/inventory-quantity/variants/string',
    headers={
        'Authorization': 'Bearer YOUR_TOKEN',
    },
)
print(response.text)
```
