# Creating multiple resources in a single request

**URL:** <https://discuss.jsonapi.org/t/creating-multiple-resources-in-a-single-request/2289>\
**Category:** Uncategorized\
**Created:** [August 10, 2021, 7:43am UTC](https://discuss.jsonapi.org/t/creating-multiple-resources-in-a-single-request/2289 "2021-08-10T07:43:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![paolooo](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.jsonapi.org/paolooo/32/706_2.png) [@paolooo](https://discuss.jsonapi.org/u/paolooo)\
**Post date:** [August 10, 2021, 7:43am UTC](https://discuss.jsonapi.org/t/creating-multiple-resources-in-a-single-request/2289/1 "2021-08-10T07:43:23Z")

</div>

Hi,

I have 100 objects that needed to created. How do we handle this with json:api? I can loop each object and do a POST request but I think that’s too much.

Please let me know if you have an idea.

Thank you.

---

<div class="post-metadata">

**Author:** ![fdrake](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.jsonapi.org/fdrake/32/654_2.png) [@fdrake](https://discuss.jsonapi.org/u/fdrake)\
**Post date:** [August 10, 2021, 3:05pm UTC](https://discuss.jsonapi.org/t/creating-multiple-resources-in-a-single-request/2289/2 "2021-08-10T15:05:50Z")

</div>

If the server you’re interacting with supports the [JSON:API 1.1 “Atomic Operations” extension](https://jsonapi.org/ext/atomic/), you could pack all that into a single request, but I don’t know how widely implemented that is.

Not sure what makes 100 requests too much, though, especially if you want 100 things done.

-Fred

---

<div class="post-metadata">

**Author:** ![timothy.stone](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.jsonapi.org/timothy.stone/32/750_2.png) [@timothy.stone](https://discuss.jsonapi.org/u/timothy.stone)\
**Post date:** [August 14, 2021, 6:27pm UTC](https://discuss.jsonapi.org/t/creating-multiple-resources-in-a-single-request/2289/3 "2021-08-14T18:27:49Z")

</div>

@fdrake and @paolooo this looks like it’s also available in v1.0 (if looking Extensions link off of the 1.0 specification).

The implementation may be specific, i.e., if adding the 100 resources takes a long time, longer than say a typical AWS Lambda function may run, e.g., 15 minutes, one can leverage a Step Function that processes half of the resources, then begins another instance of the Lambda for the next set to process, serially or in parallel.

The only limitation I would see would be a server processing limitation. A Spring Boot API, or other implementation, might not have a runtime limitation, as an AWS Lambda might.

---

<div class="post-metadata">

**Author:** ![fdrake](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.jsonapi.org/fdrake/32/654_2.png) [@fdrake](https://discuss.jsonapi.org/u/fdrake)\
**Post date:** [August 16, 2021, 4:03pm UTC](https://discuss.jsonapi.org/t/creating-multiple-resources-in-a-single-request/2289/4 "2021-08-16T16:03:46Z")

</div>

If you’re looking at this page, as I suspect:  
[https://jsonapi.org/extensions/](https://jsonapi.org/extensions/)  
It’s worth noting the highlight box at the top, indicating that this describes a feature of a future version of the specification. This is not part of JSON:API 1.0.

There’s no reason to believe that any specific service has implemented this feature unless that service specifically indicates availability in it’s documentation.

-Fred

---

<div class="post-metadata">

**Author:** ![timothy.stone](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.jsonapi.org/timothy.stone/32/750_2.png) [@timothy.stone](https://discuss.jsonapi.org/u/timothy.stone)\
**Post date:** [August 16, 2021, 7:42pm UTC](https://discuss.jsonapi.org/t/creating-multiple-resources-in-a-single-request/2289/5 "2021-08-16T19:42:26Z")

</div>

I was looking at your original link and didn’t follow it to the root you posted. Good call out.
