# API to update collection

**URL:** <https://forum.adalo.com/t/api-to-update-collection/11589>\
**Category:** External Collections, Custom Actions & Collections\
**Created:** [April 20, 2021, 12:09am UTC](https://forum.adalo.com/t/api-to-update-collection/11589 "2021-04-20T00:09:38Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Victor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/victor/32/2054_2.png) [@Victor](https://forum.adalo.com/u/Victor)\
**Post date:** [April 20, 2021, 3:09pm UTC](https://forum.adalo.com/t/api-to-update-collection/11589/4 "2021-04-20T15:09:38Z")

</div>

Hi @RayInBC,

> [@RayInBC](#):
>
> For this action there is only one record - the Order that is passed from the previous page. Should that work without having to deal with the recordID

Here is the thing: this “…n5f/ **1** ” in the API request is an _internal_ id of the record in the collection, which should be updated (of course the record, not the collection 🙂 ).

You need to know this ID somehow. The problem is, that there is **no way** to get the internal ID of the record from inside of the Adalo app. You can try to use some ways to guess it, but they can’t be 100% reliable.

So before updating, you need to run a “GET ALL” on the collection, filter the output, get the desired record ID, and only after that you can run PUT with data update. This is how it works as for now, according to my knowledge.

You can read the related discussion here: [How to Access Record ID information](https://forum.adalo.com/t/how-to-access-record-id-information/5390)

Hopefully this will improve one day 🙂

Best regards, Victor.

---

_[View the full topic](https://forum.adalo.com/t/api-to-update-collection/11589)._
