Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a collection entry programatically using CMS API #7343

Open
bkvaiude opened this issue Dec 8, 2024 · 0 comments
Open

Create a collection entry programatically using CMS API #7343

bkvaiude opened this issue Dec 8, 2024 · 0 comments
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality

Comments

@bkvaiude
Copy link

bkvaiude commented Dec 8, 2024

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.

@bkvaiude bkvaiude added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

No branches or pull requests

1 participant