# Postman API now supports async operations for updating your collections

**URL:** <https://community.postman.com/t/postman-api-now-supports-async-operations-for-updating-your-collections/79929>\
**Category:** Learning Lab\
**Tags:** collections, tutorial, postman-api\
**Created:** [May 13, 2025, 1:49pm UTC](https://community.postman.com/t/postman-api-now-supports-async-operations-for-updating-your-collections/79929 "2025-05-13T13:49:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![david-espi-hernandez](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/david-espi-hernandez/32/25537_2.png) [@david-espi-hernandez](https://community.postman.com/u/david-espi-hernandez)\
**Post date:** [May 13, 2025, 1:49pm UTC](https://community.postman.com/t/postman-api-now-supports-async-operations-for-updating-your-collections/79929/1 "2025-05-13T13:49:00Z")

</div>

The [Postman API](https://www.postman.com/postman/postman-public-workspace/documentation/i2uqzpp/postman-api) provides several endpoints that enable you to programmatically manage your Postman Collections so you don’t have to do it manually with the Postman [Desktop](https://www.postman.com/downloads/) or [Web](https://www.postman.com/) app. They include a [PUT](https://www.postman.com/postman/postman-public-workspace/request/1rfef3w/replace-a-collection-s-data) and [PATCH](https://www.postman.com/postman/postman-public-workspace/request/augwzgq/update-part-of-a-collection) operation, along with a set of [collection items APIs](https://www.postman.com/postman/postman-public-workspace/folder/u1d0iuh/items) used to manage a collection’s requests, folders, and responses (examples).

While the PUT endpoint works well for most collections, it can be slow if you’ve got a collection that’s several megabytes. That’s because the endpoint is synchronous: you have to wait until the collection update finishes before you’ll get a response. Large collections mean longer wait times.

In a [previous](https://community.postman.com/t/postman-api-endpoints-to-manage-big-collections/54100) post, we provided some alternative methods to help you manage large collections. However, these methods are a bit complex, and can potentially complicate the process of updating large collections.

## Introducing the respond-async header

To help solve this problem, we’ve updated the [PUT](https://www.postman.com/postman/postman-public-workspace/request/reipxyt/replace-collection-s-data-asynchronously) to accept a `Prefer: respond-async` header. You can now update the entire contents of your collections asynchronously!

### How it works

When the Postman API receives this header and accepts the operation, the PUT operation is scheduled to complete in a background process. The endpoint returns an HTTP `202 Accepted` response that looks similar to the following:

```json
{
    "task": {
        "id": "be15d43c-XXXX-XXXX-XXXX-1c4228f32f8d",
        "status": "in-progress"
    }
}

```

A background task is scheduled to perform the PUT. Along with this header, we’ve added a new [GET](https://www.postman.com/postman/postman-public-workspace/request/ju0qqwy/get-async-collection-update-status) `/collection-updates-tasks/{taskId}` endpoint so you can pass the task’s ID and get the status of the collection update. Its response will look something like this:

```json
{
    "id": "66ae9950-XXXX-XXXX-XXXX-1e0e47e771af",
    "status": "successful"
}

```

The response’s `status` field returns three possible values: `successful`, `failed`, or `in-progress`. You can poll the endpoint every few seconds until the process succeeds or fails. Note that the endpoint still has a limit of 100 MB in the request body.

## Summary

- You can now update (PUT) a collection asynchronously with the Postman API.
- This is useful for large collections (up to 100 MB) and CI/CD processes that require a fire-and-forget process.

---

<div class="post-metadata">

**Author:** ![aviation-saganist-79](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@aviation-saganist-79](https://community.postman.com/u/aviation-saganist-79)\
**Post date:** [May 29, 2025, 1:24pm UTC](https://community.postman.com/t/postman-api-now-supports-async-operations-for-updating-your-collections/79929/2 "2025-05-29T13:24:29Z")

</div>

Hi @david-espi-hernandez ,  
This polling through GET does help to validate for any bulk updates. Thanks for this update! A good option to use within a bulk updating script.
