Update/delete multiple contents from one API request?

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.

1 Like

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.

4 Likes

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.

1 Like