# Update Stock

## Update Stock

> \*\*Rate limit:\*\* 1000 requests per minute

```json
{"openapi":"3.1.0","info":{"title":"Sellers Center API","version":"1.0.0"},"security":[{"APIKeyAuth":[]}],"components":{"securitySchemes":{"APIKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"}},"schemas":{"UpdateStockResponseSchema":{"properties":{"batchRequestId":{"description":"ID of the asynchronous batch request. Identical payloads from the same merchant within the deduplication window return the existing in-flight ID instead of queuing a new batch. Poll the results endpoint with this ID to retrieve the outcome.","format":"uuid","title":"Batchrequestid","type":"string"}},"required":["batchRequestId"],"title":"UpdateStockResponseSchema","type":"object"},"BadRequestSchema":{"properties":{"message":{"description":"Error message","title":"Message","type":"string"}},"required":["message"],"title":"BadRequestSchema","type":"object"},"UpdateStockSchema":{"properties":{"items":{"description":"List of stock items to update","items":{"$ref":"#/components/schemas/UpdateStockItemSchema"},"maxItems":1000,"minItems":1,"title":"Items","type":"array"}},"required":["items"],"title":"UpdateStockSchema","type":"object"},"UpdateStockItemSchema":{"properties":{"sku":{"description":"Stock Keeping Unit identifier","maxLength":120,"title":"Sku","type":"string"},"quantity":{"description":"Quantity to update","maximum":1000000,"minimum":0,"title":"Quantity","type":"integer"},"valid_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Merchant-reported timestamp indicating when this stock data was valid. Used for stale data detection to prevent older updates from overwriting newer data.","title":"Valid At"}},"required":["sku","quantity"],"title":"UpdateStockItemSchema","type":"object"}}},"paths":{"/api/v1/products/stocks":{"put":{"operationId":"scapi_app_endpoints_product_api_update_stock","summary":"Update Stock","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateStockResponseSchema"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestSchema"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequestSchema"}}}},"default":{"headers":{"X-RateLimit-Limit":{"description":"Total requests allowed in the time window","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Remaining requests in the current window","schema":{"type":"integer"}}}}},"description":"**Rate limit:** 1000 requests per minute","tags":["Products"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateStockSchema"}}},"required":true}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.partner.aboutyou.com/api/stock-and-prices/update-stock.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
