# Artikel nach erzeugen per API nicht sichtbar, obwohl laut Backend alles OK ist

**URL:** <https://forum.shopware.com/t/artikel-nach-erzeugen-per-api-nicht-sichtbar-obwohl-laut-backend-alles-ok-ist/46888>\
**Category:** Administration\
**Created:** [13. Juli 2017 um 07:10 UTC](https://forum.shopware.com/t/artikel-nach-erzeugen-per-api-nicht-sichtbar-obwohl-laut-backend-alles-ok-ist/46888 "2017-07-13T07:10:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Holle](https://avatars.discourse-cdn.com/v4/letter/h/50afbb/32.png) [@Holle](https://forum.shopware.com/u/Holle)\
**Post date:** [13. Juli 2017 um 07:10 UTC](https://forum.shopware.com/t/artikel-nach-erzeugen-per-api-nicht-sichtbar-obwohl-laut-backend-alles-ok-ist/46888/1 "2017-07-13T07:10:27Z")

</div>

Guten Tag,

ich erzeuge Artikel per API, klappt auch inzwischen alles so wie gewünscht, Bildern werden übernommen und die Kategorien zugeordnet.

Laut Backend ist der Artikel auch Aktiv, im Shop aber nicht sichtbar und auch nicht per Suche.

Erst wenn ich im Backend den Artikel aufrufe und einfach nur wieder speichere, ohne eine Änderung vorzunehmen, ist der Artikel im Shop sofort zu sehen.

Hat jemand eine Idee woran dies liegen könnte?

Vielen Dank!

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [13. Juli 2017 um 07:32 UTC](https://forum.shopware.com/t/artikel-nach-erzeugen-per-api-nicht-sichtbar-obwohl-laut-backend-alles-ok-ist/46888/2 "2017-07-13T07:32:35Z")

</div>

Häufig wird der active-Flag in den main details vergessen:&nbsp;[REST API - Examples using the article resource](https://developers.shopware.com/developers-guide/rest-api/examples/article/#example-5-article-configuration-/-variation)

Da im Beispiel:

```
array(
    ...
    'active' => true,
    ...
    ),
    'mainDetail' => array(
        ...
        'active' => true,
        ...
        )
    ),

```

Kannst du auch in der DB nachschauen. Es gibt einmal active in der s\_articles und einmal in der s\_article\_details.
