# Erstellung 'Master' Artikel

**URL:** <https://forum.shopware.com/t/erstellung-master-artikel/60695>\
**Category:** Shopware Playground - API first Sandbox\
**Created:** [27. Juli 2019 um 08:31 UTC](https://forum.shopware.com/t/erstellung-master-artikel/60695 "2019-07-27T08:31:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Urs\_Landis](https://avatars.discourse-cdn.com/v4/letter/u/3be4f8/32.png) [@Urs\_Landis](https://forum.shopware.com/u/Urs_Landis)\
**Post date:** [27. Juli 2019 um 08:31 UTC](https://forum.shopware.com/t/erstellung-master-artikel/60695/1 "2019-07-27T08:31:30Z")

</div>

Hallo

Wenn ich einen Masterartikel und dieverse Varianten erstellen will über die API, muss ich da den -M Artikel auch erstellen oder macht das SW6 automatisch für mich?

&nbsp;

Grüsse

&nbsp;

Urs

---

<div class="post-metadata">

**Author:** ![Krispin](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/krispin/32/12849_2.png) [@Krispin](https://forum.shopware.com/u/Krispin)\
**Post date:** [29. Juli 2019 um 06:35 UTC](https://forum.shopware.com/t/erstellung-master-artikel/60695/2 "2019-07-29T06:35:08Z")

</div>

Guten Morgen,

nein, der Masterartikel wird nicht automatisch erstellt, in der Migration machen wir das zum Beispiel so, dass wir den Masterartikel (Container) erstellen und per children-Eigenschaft darunter die dazugehörigen Varianten anlegen, dann werden alle Produkte mit einem Call angelegt:

```
{  
   "id":"uuid-container",
   .....
    "children":[  
      {  
         "id":"uuid-variant-1",
         ......
      },
      {  
         "id":"uuid-variant-2",
         ......
      }]
}

```

&nbsp;
