# Сreate a resource with all the relationships per one request

**URL:** <https://discuss.jsonapi.org/t/reate-a-resource-with-all-the-relationships-per-one-request/111>\
**Category:** Uncategorized\
**Created:** [September 8, 2015, 2:43pm UTC](https://discuss.jsonapi.org/t/reate-a-resource-with-all-the-relationships-per-one-request/111 "2015-09-08T14:43:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vyacheslav\_scherbina](https://avatars.discourse-cdn.com/v4/letter/v/ecae2f/32.png) [@vyacheslav\_scherbina](https://discuss.jsonapi.org/u/vyacheslav_scherbina)\
**Post date:** [September 8, 2015, 2:43pm UTC](https://discuss.jsonapi.org/t/reate-a-resource-with-all-the-relationships-per-one-request/111/1 "2015-09-08T14:43:57Z")

</div>

Hello,

I’m just getting started JSON API, and I have a question:  
for example I there are two entities, “posts” and “comments”. One post has many comments, and comment can’t exists without a related post.

How can I create new post with some new comments related using one request ?  
Or the only way is create post and then update relationship ?

Thank you.

---

<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 9, 2015, 10:53am UTC](https://discuss.jsonapi.org/t/reate-a-resource-with-all-the-relationships-per-one-request/111/2 "2015-09-09T10:53:32Z")

</div>

Check out [https://github.com/json-api/json-api/issues/795](https://github.com/json-api/json-api/issues/795)
