# Update allocation not working

**URL:** <https://developer-forum.veeqo.com/t/update-allocation-not-working/943>\
**Category:** API Queries (How To)\
**Created:** [March 14, 2024, 9:53am UTC](https://developer-forum.veeqo.com/t/update-allocation-not-working/943 "2024-03-14T09:53:24Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![APIWorx](https://avatars.discourse-cdn.com/v4/letter/a/959FA8/32.png) [@APIWorx](https://developer-forum.veeqo.com/u/APIWorx)\
**Post date:** [March 14, 2024, 9:53am UTC](https://developer-forum.veeqo.com/t/update-allocation-not-working/943/1 "2024-03-14T09:53:24Z")

</div>

endpoint URL and post field params.

[https://api.veeqo.com/orders/305670620/allocations/234291144](https://api.veeqo.com/orders/305670620/allocations/234291144)

{  
“allocation”: {  
“warehouse\_id”: “103086”,  
“line\_items\_attributes”: [  
{  
“sellable\_id”: 210767580,  
“quantity”: 5  
}  
]  
}  
}

Reference Doc URL: [API Docs - Veeqo Developers](https://developer.veeqo.com/docs#/reference/allocations/allocation/update-allocation-detail)

we are using the above endpoint to update allocation in order, but after running this endpoint we are getting a successful response but it’s not reflecting in UI.

Thanks You.

---

<div class="post-metadata">

**Author:** ![APIWorx](https://avatars.discourse-cdn.com/v4/letter/a/959FA8/32.png) [@APIWorx](https://developer-forum.veeqo.com/u/APIWorx)\
**Post date:** [March 15, 2024, 8:46am UTC](https://developer-forum.veeqo.com/t/update-allocation-not-working/943/2 "2024-03-15T08:46:43Z")

</div>

Hi Veeqo Support Team,  
I’m following up on this. Can anyone please confirm? Thank you!

---

<div class="post-metadata">

**Author:** ![APIWorx](https://avatars.discourse-cdn.com/v4/letter/a/959FA8/32.png) [@APIWorx](https://developer-forum.veeqo.com/u/APIWorx)\
**Post date:** [March 19, 2024, 10:19am UTC](https://developer-forum.veeqo.com/t/update-allocation-not-working/943/3 "2024-03-19T10:19:55Z")

</div>

Hi Veeqo Support Team,

I would greatly appreciate it if you could kindly provide me with an update on this matter. Your prompt response would be very helpful.

Thank you!

---

<div class="post-metadata">

**Author:** ![esmadri](https://avatars.discourse-cdn.com/v4/letter/e/00F991/32.png) [@esmadri](https://developer-forum.veeqo.com/u/esmadri)\
**Post date:** [March 19, 2024, 3:45pm UTC](https://developer-forum.veeqo.com/t/update-allocation-not-working/943/4 "2024-03-19T15:45:13Z")

</div>

Hello @APIWorx, sorry for the late response, in this case, I noticed that you are adding the key allocation in the body request, can you please try using the next format:

```auto
{
  "warehouse_id": 103086,
  "line_items_attributes": [
    {
      "sellable_id": 210767580,
      "quantity": 5
    }
  ]
}

```

I also noticed you mention “post”, just to confirm in this case since we want to update we have to create a put request

---

<div class="post-metadata">

**Author:** ![APIWorx](https://avatars.discourse-cdn.com/v4/letter/a/959FA8/32.png) [@APIWorx](https://developer-forum.veeqo.com/u/APIWorx)\
**Post date:** [March 20, 2024, 7:44am UTC](https://developer-forum.veeqo.com/t/update-allocation-not-working/943/5 "2024-03-20T07:44:37Z")

</div>

Hey Esmadri,

Thank You for the update, I’ll check this and update you further.

Best Regards!

---

<div class="post-metadata">

**Author:** ![APIWorx](https://avatars.discourse-cdn.com/v4/letter/a/959FA8/32.png) [@APIWorx](https://developer-forum.veeqo.com/u/APIWorx)\
**Post date:** [March 21, 2024, 6:40am UTC](https://developer-forum.veeqo.com/t/update-allocation-not-working/943/6 "2024-03-21T06:40:15Z")

</div>

Hey Esmadri,

We are using the same format as you sent and the put request as well, still we are unable to update the allocation, I’ve attached screenshots for your reference.

Thank You!

 ![Screen Shot 2024-03-20 at 8.07.33 PM](https://global.discourse-cdn.com/standard10/uploads/veeqo/original/1X/c77e52108a8d557e38323a677cd20bbbf7a1fe29.jpeg)  
 ![image (32)](https://global.discourse-cdn.com/standard10/uploads/veeqo/original/1X/c09c908e316d4adbed1b4e149d5bc2c6be3c9abe.png)  
 ![image (31)](https://global.discourse-cdn.com/standard10/uploads/veeqo/original/1X/8fcf09be5eb989278e08ba0abfa2895254b7108a.png)

---

<div class="post-metadata">

**Author:** ![APIWorx](https://avatars.discourse-cdn.com/v4/letter/a/959FA8/32.png) [@APIWorx](https://developer-forum.veeqo.com/u/APIWorx)\
**Post date:** [March 26, 2024, 5:18am UTC](https://developer-forum.veeqo.com/t/update-allocation-not-working/943/7 "2024-03-26T05:18:19Z")

</div>

Hey Veeqo Support,

Could you please provide an update on this at your earliest convenience?

Thank You!

---

<div class="post-metadata">

**Author:** ![esmadri](https://avatars.discourse-cdn.com/v4/letter/e/00F991/32.png) [@esmadri](https://developer-forum.veeqo.com/u/esmadri)\
**Post date:** [March 27, 2024, 2:43pm UTC](https://developer-forum.veeqo.com/t/update-allocation-not-working/943/8 "2024-03-27T14:43:55Z")

</div>

Hey @APIWorx, sorry for the late response, after a deep investigation and testing in my own account it seems we do not support this feature anymore, a workaround could be delete the entire allocation and recreated with the respective quantity. I am going to be requesting a update in the documentation in order to avoid this situations, thank you!

---

<div class="post-metadata">

**Author:** ![APIWorx](https://avatars.discourse-cdn.com/v4/letter/a/959FA8/32.png) [@APIWorx](https://developer-forum.veeqo.com/u/APIWorx)\
**Post date:** [March 28, 2024, 10:21am UTC](https://developer-forum.veeqo.com/t/update-allocation-not-working/943/9 "2024-03-28T10:21:30Z")

</div>

Hey esmadri,

No worries, thank you for providing the update.

Best Regards!
