Feature request: API fix for Product endpoint

Nicolas Noakes

Currently, a PUT request on the Product endpoint of the API requires the BillOfMaterialsProducts and BillOfMaterialsServices arrays to be included in the payload if the BOMType field value is “Assembly”. This applies even if the BOMType field is not being changed.

This requirement makes sense if you are modifying the BOM type for the product, but in all other circumstances it SEVERLY impacts granular product updates via the API where only one or two fields need to be changed. It means that you first have to perform a read of the whole product to get the current version of the BOM and then write back the changes plus the BOM data. If you include an empty array for the BillOfMaterial… fields then it is deleted in Cin7. This means two API calls for every update, which effectively halves the available API limits, besides the implementation overhead.

Please change the API logic to not require the BillOfMaterial… arrays in the PUT request if the BOMType parameter is not being changed.

Related to

0

Comments

0 comments

Please sign in to leave a comment.