# Problem updating field via SDK GO

**URL:** https://discuss.elastic.co/t/problem-updating-field-via-sdk-go/344326
**Category:** Elasticsearch
**Created:** [October 3, 2023, 3:48pm UTC](https://discuss.elastic.co/t/problem-updating-field-via-sdk-go/344326 "2023-10-03T15:48:02Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Wiliam\_Joaquim](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wiliam_joaquim/32/22458_2.png) [@Wiliam\_Joaquim](https://discuss.elastic.co/u/Wiliam_Joaquim)
#### Post date: [October 3, 2023, 3:48pm UTC](https://discuss.elastic.co/t/problem-updating-field-via-sdk-go/344326/1 "2023-10-03T15:48:02Z")

</div>

I'm using the Go SDK to update data in Elasticsearch, but strangely, via the SDK it doesn't update a specific field, via the http client it works correctly sometimes:

```auto
POST test/type1/123/_update

{
  "doc": {
    "asset": {
        "type": "material",
        "quality": "hd",
        "Qualidade": 3,
        "product_id": "6a49a4fe-731c-4039-afcc-3f955c0a8987"
     }
   }
}

```

This updates the **asset** field, sometimes it does not update, even when modifying the values  
the asset field looks like this in the mapping:

```auto
"asset": {
  "type": "object"
},

```

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [October 31, 2023, 3:48pm UTC](https://discuss.elastic.co/t/problem-updating-field-via-sdk-go/344326/2 "2023-10-31T15:48:35Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
