You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'm currently working on integrating Lectronz into InvenTree and would like to enable the user to link their stock levels to Lectronz (so that when new stock items get added, the stock level at Lectronz gets set accordingly).
This is already possible via the PATCH /api/v1/products/{id} API call, but only per product, not per product option.
Describe the solution you'd like
Enable the PATCH /api/v1/products/{id} API call to accept additional inputs like so:
product_optionsarray of object List of options available for the product.
idinteger Unique identifier for this product option.
choicesarray of object Available choices for the option.
idinteger Unique identifier for this choice.
stock_availablenumber Stock available for this choice.
To be able to set the stock_available for each product option / choice.
Describe alternatives you've considered
-
Additional context
-
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I'm currently working on integrating Lectronz into InvenTree and would like to enable the user to link their stock levels to Lectronz (so that when new stock items get added, the stock level at Lectronz gets set accordingly).
This is already possible via the
PATCH /api/v1/products/{id}
API call, but only per product, not per product option.Describe the solution you'd like
Enable the
PATCH /api/v1/products/{id}
API call to accept additional inputs like so:product_options
array of objectList of options available for the product.
id
integerUnique identifier for this product option.
choices
array of objectAvailable choices for the option.
id
integerUnique identifier for this choice.
stock_available
numberStock available for this choice.
To be able to set the stock_available for each product option / choice.
Describe alternatives you've considered
-
Additional context
-
The text was updated successfully, but these errors were encountered: