# How to append the nested fields in already created elasticsearch index using ES API

**URL:** <https://discuss.elastic.co/t/how-to-append-the-nested-fields-in-already-created-elasticsearch-index-using-es-api/312525>\
**Category:** Elasticsearch\
**Created:** [August 20, 2022, 7:51pm UTC](https://discuss.elastic.co/t/how-to-append-the-nested-fields-in-already-created-elasticsearch-index-using-es-api/312525 "2022-08-20T19:51:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sabaridass10](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sabaridass10/32/117484_2.png) [@Sabaridass10](https://discuss.elastic.co/u/Sabaridass10)\
**Post date:** [August 20, 2022, 7:51pm UTC](https://discuss.elastic.co/t/how-to-append-the-nested-fields-in-already-created-elasticsearch-index-using-es-api/312525/1 "2022-08-20T19:51:48Z")

</div>

I tried to append the nested field using below syntax but showing some error. Can anyone please help me on this?

PUT url : es\_index/\_mappings

{  
"properties": {  
"assignee": {  
"properties": {  
"components": {  
"properties": {  
"description": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"id": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"name": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"self": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
}  
}  
}  
}  
}  
}  
}

**Error:**

 HTTP Proxy Alert 
## Connection Error

### Unable to connect to server

---

<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:** [September 17, 2022, 7:52pm UTC](https://discuss.elastic.co/t/how-to-append-the-nested-fields-in-already-created-elasticsearch-index-using-es-api/312525/2 "2022-09-17T19:52:25Z")

</div>

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