# Error : Update customfields by API, API server error

**URL:** <https://forum.shopware.com/t/error-update-customfields-by-api-api-server-error/105838>\
**Category:** Shopware 6 (English)\
**Created:** [13. November 2024 um 15:19 UTC](https://forum.shopware.com/t/error-update-customfields-by-api-api-server-error/105838 "2024-11-13T15:19:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vimeav](https://avatars.discourse-cdn.com/v4/letter/v/4da419/32.png) [@vimeav](https://forum.shopware.com/u/vimeav)\
**Post date:** [13. November 2024 um 15:19 UTC](https://forum.shopware.com/t/error-update-customfields-by-api-api-server-error/105838/1 "2024-11-13T15:19:34Z")

</div>

When I want to update the value of a customfield I get the following error:

{„errors“:[{„code“:„0“,„status“:„500“,„title“:„Internal Server Error“,„detail“:"Shopware\Core\System\CustomField\CustomFieldService::getCustomField(): Argument #1 ($attributeName) must be of type string, int given,

I seems like the internal function still works with the old integer instead of the new uuid’s.

I use this simple code, to update a custom field:

{  
„customFields“: {  
„your\_custom\_field\_key“: „value“  
}  
}

Any idea?
