# Warehouse\_product\_update mutation not working

**URL:** https://community.shiphero.com/t/warehouse-product-update-mutation-not-working/2121
**Category:** GraphQL API
**Created:** [August 6, 2022, 7:16pm UTC](https://community.shiphero.com/t/warehouse-product-update-mutation-not-working/2121 "2022-08-06T19:16:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![atlatin](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@atlatin](https://community.shiphero.com/u/atlatin)
#### Post date: [August 6, 2022, 7:16pm UTC](https://community.shiphero.com/t/warehouse-product-update-mutation-not-working/2121/1 "2022-08-06T19:16:08Z")

</div>

When trying to use the warehouse\_product\_update mutation, it responds as if it worked but then doesn’t do anything. For example, we sent the below:

mutation {  
warehouse\_product\_update(  
data: {  
sku: “SKU HERE”  
warehouse\_id: “OUR WAREHOUSE\_ID”  
replenishment\_level: 2  
}  
) {  
request\_id  
complexity  
}  
}

But the replenishment level never changed. We also tried setting active to false and nothing changed either. Below is a request\_id example:  
“request\_id”: “62eebd952ecf2a489d1b4d17”,

Do you know if I’m doing something incorrectly here? Thanks!

---

<div class="post-metadata">

### Author: ![sh-agent](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sh-agent](https://community.shiphero.com/u/sh-agent)
#### Post date: [August 8, 2022, 11:04am UTC](https://community.shiphero.com/t/warehouse-product-update-mutation-not-working/2121/2 "2022-08-08T11:04:30Z")

</div>

Hey @atlatin,

Thanks for reaching out.  
I’ll look into this and get back to you shortly.

Best,  
RayanP

---

<div class="post-metadata">

### Author: ![sh-agent](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sh-agent](https://community.shiphero.com/u/sh-agent)
#### Post date: [August 8, 2022, 12:12pm UTC](https://community.shiphero.com/t/warehouse-product-update-mutation-not-working/2121/3 "2022-08-08T12:12:57Z")

</div>

Hey @atlatin,

I noticed that the `customer_account_id` wasn’t in that mutation. The SKU in question is also currently set to inactive, so an example mutation to run would be:

```auto
mutation {
  warehouse_product_update(
    data: {
      sku: "your SKU here"
      warehouse_id: "your warehouse id here"
      customer_account_id: "61366"
      active: true
      replenishment_level: 2
    }
  ) {
    request_id
    complexity
    warehouse_product {
      id
      legacy_id
      account_id
      sku
      warehouse_id
    }
  }
}

```

Please let me know if that works for you!

Best,  
RayanP

---

<div class="post-metadata">

### Author: ![atlatin](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@atlatin](https://community.shiphero.com/u/atlatin)
#### Post date: [August 8, 2022, 3:22pm UTC](https://community.shiphero.com/t/warehouse-product-update-mutation-not-working/2121/4 "2022-08-08T15:22:50Z")

</div>

Perfect thank you, that fixed it. I didn’t realize customer\_account\_id was required. Thanks for your help.
