Aktualisierung von Warenbeständen - Update article stocks

DE Hallo, Ich implementiere gerade eine Lösung die Warenbestände des Shops zu aktualisieren. Das Problem ist, dass Ich momentan keinen anderen Weg sehe die Aktualisierung durch zu führen als das Empfangen und Zurücksenden des kompletten :wtf: Artikelobjektes mit aktualisiertem Warenbestand. Ich wollte deshalb fragen ob es da auch eine schlankere Methode gibt. Zum Beispiel über einen REST-Controller: /stock?artNum wobei PUT verwendendet wird um ein update mit Anzahl durch zu führen. Im schlimmsten Fall muss ich das komplette Artikelobjekt entgegen nehmen und es wieder, mit der Änderung, zurück schicken. Ich danke schon mal für die Hilfe. EN Hello, I’m currently implementing a solution to update the stocks of articles. My problem is that I do not see a much more direct approach than fetching and returning the entire updated article object. I’m hoping for a more direct approach. Something like a REST-Constroller: /stock?articleNumber=[articleNumber] where the HTTP-PUT method can be used to update the stock level. At this point I only see the /api/articles controller. This handles all and specific articles. Thanks for the help.

I have found the solution. Articles can be updated by using the controller as /api/articles/{[shopWareId]|[articleNumber?useNumberAsId=true] and the json payload {“mainDetail”: {“inStock”: [newStock]}}