Is it possible to create collections dynamically?

System Information
  • Strapi Version: 4.10
  • Operating System: debian
  • Database: postgresql
  • Node Version: 18.16
  • NPM Version:
  • Yarn Version:

I use nextjs 13 and I have a project that will work a bit better if I can add collections dynamically. I mean I have the collection name and fields and i want to generate new collection from nextjs and of course restart the server after. Is it possible?