# How to update a stock of product in veeqo using api key

**URL:** <https://developer-forum.veeqo.com/t/how-to-update-a-stock-of-product-in-veeqo-using-api-key/970>\
**Category:** API Queries (How To)\
**Created:** [April 2, 2024, 2:00pm UTC](https://developer-forum.veeqo.com/t/how-to-update-a-stock-of-product-in-veeqo-using-api-key/970 "2024-04-02T14:00:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![badrisai155](https://avatars.discourse-cdn.com/v4/letter/b/00F991/32.png) [@badrisai155](https://developer-forum.veeqo.com/u/badrisai155)\
**Post date:** [April 2, 2024, 2:00pm UTC](https://developer-forum.veeqo.com/t/how-to-update-a-stock-of-product-in-veeqo-using-api-key/970/1 "2024-04-02T14:00:54Z")

</div>

I am unable to update a stock directly of a product in a program how to use api key to update stock and what are the attributes used please help me with this

---

<div class="post-metadata">

**Author:** ![leialeja](https://avatars.discourse-cdn.com/v4/letter/l/9B8BFF/32.png) [@leialeja](https://developer-forum.veeqo.com/u/leialeja)\
**Post date:** [April 2, 2024, 8:46pm UTC](https://developer-forum.veeqo.com/t/how-to-update-a-stock-of-product-in-veeqo-using-api-key/970/2 "2024-04-02T20:46:46Z")

</div>

Hello @badrisai155

In this case in order to update the stock entries feel free to follow this link:

> **[API Docs - Veeqo Developers](https://developer.veeqo.com/docs#/reference/stock-entries/stock-entry/update-a-stock-entry)**
>
> API Docs - Veeqo Developers

Make sure to add:

-sellable\_id  
-warehouse\_id

[https://private-anon-a1e5ae7093-veeqo.apiary-mock.com/sellables/sellable\_id/warehouses/warehouse\_id/stock\_entry](https://private-anon-a1e5ae7093-veeqo.apiary-mock.com/sellables/sellable_id/warehouses/warehouse_id/stock_entry)

Please let me know if there is any other question.

Regards.
