kobotoolbox / kpi

kpi is the (frontend) server for KoboToolbox. It includes an API for users to access data and manage their forms, question library, sharing settings, create reports, and export data.
https://www.kobotoolbox.org
GNU Affero General Public License v3.0
130 stars 175 forks source link

Bulk operations for projects #4376

Open magicznyleszek opened 1 year ago

magicznyleszek commented 1 year ago

When selecting multiple projects in My Projects route, we need some bulk operations to be possible:

Back end notes

New endpoint: POST request to /api/v2/assets/bulk/:

  1. Some assets (every asset you own or you can manage)
   {"payload": {"asset_uids": ["auid_1", ..., "auid_n"], "action": "archive|delete|unarchive"}}
  1. All your assets
   {"payload": {"confirm": true, "action": "archive|delete|unarchive"}}
noliveleger commented 1 year ago

@magicznyleszek FYI, I have update the back-end notes because it changed a little since our last discussion.