# Update parent(\_parent) from JSON rather than query

**URL:** https://discuss.elastic.co/t/update-parent--parent-from-json-rather-than-query/19703
**Category:** Elasticsearch
**Created:** [September 10, 2014, 8:52am UTC](https://discuss.elastic.co/t/update-parent--parent-from-json-rather-than-query/19703 "2014-09-10T08:52:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Santosh\_B](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@Santosh\_B](https://discuss.elastic.co/u/Santosh_B)
#### Post date: [September 10, 2014, 8:52am UTC](https://discuss.elastic.co/t/update-parent--parent-from-json-rather-than-query/19703/1 "2014-09-10T08:52:21Z")

</div>

usually parent field is updated using

POST /dsdemo/content/child11787?parent=parent1  
{  
"title": "The 111 document",  
"body": "This 111 could be huge #14"  
}

instead of this can we try to update parent like this

POST /dsdemo/content/child11787  
{  
"title": "The 111 document",  
"body": "This 111 could be huge #14",  
"parent":"parent1"  
}

or may be

POST /dsdemo/content/child11787  
{  
"title": "The 111 document",  
"body": "This 111 could be huge #14",  
"\_parent":"parent1"  
}

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/55dc90a8-09c2-4879-bf33-73f040f60d4a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/55dc90a8-09c2-4879-bf33-73f040f60d4a%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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: [July 6, 2017, 1:03am UTC](https://discuss.elastic.co/t/update-parent--parent-from-json-rather-than-query/19703/2 "2017-07-06T01:03:28Z")

</div>


