REST API: Varianten erweitern

Hallo zusammen, mit folgendem Beispiel versuche ich einen bestehenden Artikel um Varianten zu erweitern: $configuratorArticle = array( 'articleId' =\> '3884', 'number' =\> 'swTEST52b03205900ca', 'inStock' =\> 100, 'unitId' =\> 1, 'prices' =\> array( array( 'customerGroupKey' =\> 'EK', 'from' =\> 1, 'to' =\> '-', 'price' =\> 400, ), ), 'configuratorOptions' =\> array( array('group' =\> 'Größe', 'option' =\> '51',), ), ); $client-\>put('variants', ApiClient::METHODE\_POST, $configuratorArticle); Ich bekomme nur immer folgende Fehlermeldung: [success] =\> [message] =\> Article by id P not found [trace] =\> #0 /www/engine/Shopware/Components/Api/Resource/Resource.php(529): Shopware\Components\Api\Resource\Variant-\>create('POST') Weiß jemand Rat? Danke schon mal :slight_smile:

Mein Fehler. Hatte den METHODE_POST mit $client->put aufgerufen: FALSCH: $client-\>put('variants', ApiClient::METHODE\_POST, $configuratorArticle); RICHTIG: $client-\>call('variants', ApiClient::METHODE\_POST, $configuratorArticle);