# Creating nested resources format?

**URL:** <https://discuss.jsonapi.org/t/creating-nested-resources-format/117>\
**Category:** Uncategorized\
**Created:** [September 15, 2015, 6:58am UTC](https://discuss.jsonapi.org/t/creating-nested-resources-format/117 "2015-09-15T06:58:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nomad](https://avatars.discourse-cdn.com/v4/letter/n/ecae2f/32.png) [@nomad](https://discuss.jsonapi.org/u/nomad)\
**Post date:** [September 15, 2015, 6:58am UTC](https://discuss.jsonapi.org/t/creating-nested-resources-format/117/1 "2015-09-15T06:58:42Z")

</div>

what’s that creating nested resources format. typically how is json format when oneToMany associated models?

i think:  
{  
“data”: {  
“type”: “posts”,  
“attributes”: {  
“title”: “Ember Hamster”,  
“src”: “[http://example.com/images/productivity.png](http://example.com/images/productivity.png)”  
},  
“relationships”: {  
“comments”: {  
“data”: [  
{“type”: “comments”, attributes: { text: “some comment”} },  
{“type”: comments, attributes: {text: “some comment”} }  
}  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![ethanresnick](https://avatars.discourse-cdn.com/v4/letter/e/45deac/32.png) [@ethanresnick](https://discuss.jsonapi.org/u/ethanresnick)\
**Post date:** [September 16, 2015, 9:37pm UTC](https://discuss.jsonapi.org/t/creating-nested-resources-format/117/2 "2015-09-16T21:37:49Z")

</div>

Right now, you can’t create more than one resource (i.e. a post with it’s comments) in a single request. However, this is going to be supported soon. See [https://github.com/json-api/json-api/issues/795](https://github.com/json-api/json-api/issues/795)
