# Purchase\_order\_update mutation usage

**URL:** <https://community.shiphero.com/t/purchase-order-update-mutation-usage/936>\
**Category:** GraphQL API\
**Created:** [November 8, 2020, 7:12am UTC](https://community.shiphero.com/t/purchase-order-update-mutation-usage/936 "2020-11-08T07:12:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kalesha](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@kalesha](https://community.shiphero.com/u/kalesha)\
**Post date:** [November 8, 2020, 7:12am UTC](https://community.shiphero.com/t/purchase-order-update-mutation-usage/936/1 "2020-11-08T07:12:17Z")

</div>

My use case is, I created a purchase order in shiphero today using apis with order quantity 10. Next day I realized that I only need quantity 5. So my question is-  
**How can I update existing purchase order quantity using APIs?**

---

<div class="post-metadata">

**Author:** ![tomasw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/tomasw/32/248_2.png) [@tomasw](https://community.shiphero.com/u/tomasw)\
**Post date:** [November 9, 2020, 2:05pm UTC](https://community.shiphero.com/t/purchase-order-update-mutation-usage/936/2 "2020-11-09T14:05:41Z")

</div>

Hi @kalesha!  
You can use the purchase\_order\_update mutation for that, and update the Quantity for that SKU.  
Would that work for you?

**Example:**

```
mutation{
  purchase_order_update(data: {
    line_items:{
      sku:"testSKU"
      quantity:0
    }
  }){
    request_id
    complexity
  }
}
```
