decaporg / decaporg/decap-cms

Create a collection entry programatically using CMS API

Open
#7,343 2 comments 0 reactions 0 assignees View on GitHub
type: feature
Dominant language
JavaScript
Stars
19.4k
Forks
3.1k
Avg merge
1d 14h
Merged PRs (30d)
9

Description

**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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.