Inventree API - Option to add list of Stock Tracking data with custom dates #7301
Replies: 2 comments 4 replies
-
Hey @wieselukas welcome aboard! I do not think that you can do this via the API. The stock "tracking" entries are designed to be automatically generated (and thus cannot be ingested via the API with "back-dated" records). Potentially you could do it by structuring a |
Beta Was this translation helpful? Give feedback.
-
Hi @SchrodingersGat , thanks for the info! I think I will stay with the api-based approach, as all of the import is now done through that. But interesting catch that if somebody want's to write a "full" partkeepr import script, using the api might not be a feasible option. Anyways I'll make sure to notify you once my import is done and share my code, so this can potentially be re-used for future switches by other people. |
Beta Was this translation helpful? Give feedback.
-
Hi everybody,
switching from partkeepr to Inventree, I am looking to also copy over the stock history into the associating Stock Tracking entries in Inventree. Ideally this would also mean copying the date and time. Looking at the http://inventree.localhost/api-doc page, I could only find 3 get methods for the stock tracking, and no option to bulk upload Tracking info or set the dates.
I am currenly planning to use the POST /api/stock/count method and to put the partkeepr date, username and comment all into the notes field. This is a feasible option, but nevertheless: does anybody know if uploading stock tracking with dates over the api is anyhow possible?
Thanks! Lukas
Beta Was this translation helpful? Give feedback.
All reactions