Create a collection entry programatically using CMS API
Is your feature request related to a problem? Please describe.
I need assistance in programmatically creating collection entries in DecapCMS.
Here's the scenario:
I have a spreadsheet with over 1,000 addresses that need to be managed in DecapCMS. To achieve this, I uploaded the spreadsheet as a CSV file using the file upload widget and triggered the postSave event via Address Updates collection. While I was able to read the file content and parse it to extract the data, I couldn't find a way to create entries in the "Address" collection programmatically within DecapCMS.
Describe the solution you'd like
I initially thought the CMS API would provide a method to create collection entries, but I couldn't find such functionality. A wrapper CMS API would be an ideal solution, as it could handle the complexities of different Git gateways or backends seamlessly under the hood.
Was looking for something similar. If you've already parsed the files though all you would have to do is something like writing the JSON.toString() output (or yaml whatever) into the files ... about to dig through the actual code and see if I can just call whatever they're doing when they create a new collection item... haven't seen anything exposed that's documented for it yet though either. Another consideration is just doing it on the ssg side (I use 11ty) so not much of an issue.
Keystatic is another Static site admin and does have a reader API like you mention, but nothing for writing that I've seen.
Have you considered converting the CSV file into JSON or YAML file since those are already supported?