How do you design a RESTful API to handle bulk or batch operations?

Last updated 29 June 2026

  • Model the batch as an action on a collection, e.g. POST /resources/batch with an array of items or operations (similar to JSON Patch for mixed verbs).

  • Decide and document atomicity (all-or-nothing vs best-effort), and return 207 Multi-Status or 200 with per-item id, status, and error.

  • Cap batch size (reject oversize with 413 or 422), support idempotency keys, and for slow jobs return 202 Accepted with a status URL to poll.

  • https://www.sendowl.com/s/job-search
  • https://www.ashokit.in/blog/top-microservices-interview-questions-and-answers
  • https://www.resumeadapter.com/blog/full-stack-developer-resume-keywords
  • https://meduzzen.com/hire/backend-developers/
  • https://www.greatfrontend.com/blog/latest
  • https://prepfully.com/interview-guides/hubspot-software-engineer
  • https://www.getsmartresume.com/article/netflix-internship-new-grad-opportunities
All REST API interview questions