How can i create multiple entries by REST API[POST]

System Information
  • Strapi Version: v4.1.7
  • Operating System: macOS
  • Database: postgresql
  • Node Version: 16.12.4
  • NPM Version: 8.5.0
  • Yarn Version: 1.22.17

i made collection type with some normal fields and relation, media fields.
but i don’t know how to create multiple entries with relation, media fields of values by Post request.
i searched a lot of posts about create by post api, but no one tell about this.
so please anyone let me teach how to write request json code by sample code.


2 Likes

You can use bulk operations like createMany().

I’m not sure if it addresses your issue, by providing more context I can help you further

You cannot bulk create via rest api. But you can create a custom endpoint to process your data and utilize createMany() as daniel_lalasa suggests.