Bulk Create item
Hey, so im bringing in a lot of seeds 1000+ and create all the different items would be insanely slow process, even with the T3 upload on create item i get to about 20-30 before it starts to freeze up my browser. i have access to python, and know very minimal, please tell me there is a way i can make creating items a bit easier.
im great with spreadsheets and can make the list with all the info needed in minutes, its just getting it into metrc.
- MMatt Frisbie @mattfriz
The T3 API examples repository has this example for creating a single item:
https://github.com/classvsoftware/t3-api-examples/blob/master/create-item.py
If you don't need to attach images to items, converting this to read from a spreadsheet is very straightforward. You could probably get ChatGPT to convert that script for you to read values out of a spreadsheet in one shot.
Alternatively, you could tell it to load the OpenAPI spec portion that only covers item creation: https://api.trackandtrace.tools/v2/spec/openapi.json?path=/v2/items/create
If you do need to attach images to items, this is still possible, but the process is more complicated. Let me know if this is the case.
- BBobby Jankowski @BobbyJ
its just seeds (not final product) so i do not need to attach photos at all. ill give this a look. thank you!
a lot of this is pretty new to me so its a bit intimidating to look at but ill try what you said