inventory
PUT
https://linkyhub.net/api/v3 /products/{productId}/inventory Scope inventory:writeSet a product’s stock. 0 marks it sold out; null means unlimited.
Parameters
productIdstringpathrequiredRequest body
application/json
inventoryintegerrequired{
"inventory": 0
}Code samples
cURL
curl -X PUT "https://linkyhub.net/api/v3/products/{productId}/inventory" \
-H "Authorization: Bearer $LINKYHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"inventory":0}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Done.
{}Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
default An error.
Example
{
"error": "string",
"message": "string"
}Schema
errorstringrequiredA stable code to branch on, e.g. insufficient_scope.
messagestringrequiredA sentence to show a person.
Headers
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.
Updated