# CustomField updaten via PATCH /api/v3/product/product-id oder POST /api/v3/product

**URL:** <https://forum.shopware.com/t/customfield-updaten-via-patch-api-v3-product-product-id-oder-post-api-v3-product/70250>\
**Category:** Programmierung\
**Created:** [16. Oktober 2020 um 10:08 UTC](https://forum.shopware.com/t/customfield-updaten-via-patch-api-v3-product-product-id-oder-post-api-v3-product/70250 "2020-10-16T10:08:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mit3233](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@mit3233](https://forum.shopware.com/u/mit3233)\
**Post date:** [16. Oktober 2020 um 10:08 UTC](https://forum.shopware.com/t/customfield-updaten-via-patch-api-v3-product-product-id-oder-post-api-v3-product/70250/1 "2020-10-16T10:08:57Z")

</div>

Hallo Zusammen,

ich lege gerade Artikel über die Admin API via POST an und das funktioniert auch super, genauso das Ändern via PATCH. Ich würde jetzt gerne aber ein paar weitere Felder in Customfields vom Produkt schreiben. Dafür habe ich ein Customfieldset für Produkte angelegt und auch ein Feld zum Testen. Im Backend von Shopware kann ich das Feld also ganz normal bei jedem Produkt befüllen.

Hat das schon mal Jemand über die API befüllt? Ich habe folgendes im Body versucht:

```
{
    "custom_field" : [
        { 
            "custom_articledata_article_number" => "1289"
        }
    ]
}

```

Das funktioniert allerdings nicht. Jemand eine Idee?

Danke und Grüße!

---

<div class="post-metadata">

**Author:** ![mit3233](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@mit3233](https://forum.shopware.com/u/mit3233)\
**Post date:** [18. Oktober 2020 um 16:57 UTC](https://forum.shopware.com/t/customfield-updaten-via-patch-api-v3-product-product-id-oder-post-api-v3-product/70250/2 "2020-10-18T16:57:57Z")

</div>

\*push\* Hat das wirklich noch nie Jemand gemacht?

---

<div class="post-metadata">

**Author:** ![Moorleiche](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@Moorleiche](https://forum.shopware.com/u/Moorleiche)\
**Post date:** [18. Oktober 2020 um 17:18 UTC](https://forum.shopware.com/t/customfield-updaten-via-patch-api-v3-product-product-id-oder-post-api-v3-product/70250/3 "2020-10-18T17:18:28Z")

</div>

Nicht `custom_field` sondern `customFields` 😉

Kann man auch schön in der Console verfolgen, wenn man Produkte im Backend ändert

![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/3/322097229e39b4257e7143866ce1e1b050fef426.png)

---

<div class="post-metadata">

**Author:** ![mit3233](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@mit3233](https://forum.shopware.com/u/mit3233)\
**Post date:** [19. Oktober 2020 um 13:31 UTC](https://forum.shopware.com/t/customfield-updaten-via-patch-api-v3-product-product-id-oder-post-api-v3-product/70250/4 "2020-10-19T13:31:43Z")

</div>

Das hatte ich auch schon probiert, da ging es nicht. Jetzt geht es 🙂 Keine Ahnung, was ich anders gemacht habe, aber Danke!

---

<div class="post-metadata">

**Author:** ![pcs](https://avatars.discourse-cdn.com/v4/letter/p/9d8465/32.png) [@pcs](https://forum.shopware.com/u/pcs)\
**Post date:** [15. Oktober 2023 um 00:29 UTC](https://forum.shopware.com/t/customfield-updaten-via-patch-api-v3-product-product-id-oder-post-api-v3-product/70250/5 "2023-10-15T00:29:41Z")

</div>

Ich bring das mal wieder auf den Tisch weil ich nichts weiter komme…

Ich möchte genau das selbe machen wie du hier…

> „customFields“: [{  
> „custom\_product\_brand“: „blabla“
> 
> ```
> }]
> 
> ```

Einfach nicht . Und ich finde auch nirgendswo eine DOC es erklart wird.

---

<div class="post-metadata">

**Author:** ![mj.es](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/mj.es/32/24133_2.png) [@mj.es](https://forum.shopware.com/u/mj.es)\
**Post date:** [31. Januar 2024 um 12:31 UTC](https://forum.shopware.com/t/customfield-updaten-via-patch-api-v3-product-product-id-oder-post-api-v3-product/70250/6 "2024-01-31T12:31:14Z")

</div>

Ihr habt beide nicht die richtige Syntax verwendet:

`{ "customFields": { "custom_product_brand": "Hier stehen ganz fantastische Dingo." } }`

Es ist kein Array und customFields muss in camelCase geschrieben sein.
