# Update/delete multiple contents from one API request?

**URL:** <https://meta.discourse.org/t/update-delete-multiple-contents-from-one-api-request/115086>\
**Category:** Support\
**Created:** [April 15, 2019, 10:08am UTC](https://meta.discourse.org/t/update-delete-multiple-contents-from-one-api-request/115086 "2019-04-15T10:08:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benuuts](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benuuts/32/133005_2.png) [@Benuuts](https://meta.discourse.org/u/Benuuts)\
**Post date:** [April 15, 2019, 10:08am UTC](https://meta.discourse.org/t/update-delete-multiple-contents-from-one-api-request/115086/1 "2019-04-15T10:08:13Z")

</div>

Hi,

To update or delete a post, a category or a topic you need make a request such as `/categories/{id}.json` but I have 70+ categories to update.  
Is there any way of updating with a single request `/categories/[id,id,id]` ?

For now I use a script that send multiple request but it could be good to have that possibility.

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [April 15, 2019, 11:37am UTC](https://meta.discourse.org/t/update-delete-multiple-contents-from-one-api-request/115086/2 "2019-04-15T11:37:31Z")

</div>

No. I do not believe that there is a way to modify multiple categories with one request. If you say more about what problem you are trying to solve, some other solution might become apparent, but generally, if someone needs to make similar changes to multiple categories, the API or rails console is the solution.

---

<div class="post-metadata">

**Author:** ![Benuuts](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benuuts/32/133005_2.png) [@Benuuts](https://meta.discourse.org/u/Benuuts)\
**Post date:** [April 15, 2019, 12:43pm UTC](https://meta.discourse.org/t/update-delete-multiple-contents-from-one-api-request/115086/3 "2019-04-15T12:43:06Z")

</div>

I had to rename them to add a prefix. So a really tedious work to do one by one. But I ended up making a script.

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [July 12, 2022, 8:38am UTC](https://meta.discourse.org/t/update-delete-multiple-contents-from-one-api-request/115086/5 "2022-07-12T08:38:17Z")

</div>


