# Api: Article anlegen false

**URL:** <https://forum.shopware.com/t/api-article-anlegen-false/69170>\
**Category:** Programmierung\
**Created:** [25. August 2020 um 13:08 UTC](https://forum.shopware.com/t/api-article-anlegen-false/69170 "2020-08-25T13:08:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [25. August 2020 um 13:08 UTC](https://forum.shopware.com/t/api-article-anlegen-false/69170/1 "2020-08-25T13:08:59Z")

</div>

Hallo. wenn ich über die API Artikel anlege, dann möchte ich ein paar auch auf inaktiv setzen, also gebe ich den Wert active mit.

Bei true wird der Artikel aktiv/sichtbar angelegt, bei false jedoch auch. Dieser wird nicht inaktiv.

```
$params = array(
    ...
    "active" => "false",  
  
    "mainDetail" => array(
        ...
        "active" => "false"
    )

```

Hat hier jemand eine Idee? Danke und Gruss

---

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [25. August 2020 um 15:27 UTC](https://forum.shopware.com/t/api-article-anlegen-false/69170/2 "2020-08-25T15:27:23Z")

</div>

ok, eigene Antwort. Der mittels Formular übermittelte Wert “true” oder “false” muss in Boolean umgewandelt werden.
