# Addon for importing collection data via API ( json or csv )

**URL:** <https://discourse.getcockpit.com/t/addon-for-importing-collection-data-via-api-json-or-csv/2061>\
**Category:** Addons\
**Created:** [September 3, 2021, 9:53am UTC](https://discourse.getcockpit.com/t/addon-for-importing-collection-data-via-api-json-or-csv/2061 "2021-09-03T09:53:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronaldaug](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/ronaldaug/32/260_2.png) [@ronaldaug](https://discourse.getcockpit.com/u/ronaldaug)\
**Post date:** [September 3, 2021, 9:53am UTC](https://discourse.getcockpit.com/t/addon-for-importing-collection-data-via-api-json-or-csv/2061/1 "2021-09-03T09:53:54Z")

</div>

As far as I know, there is no API to import the collection data, I mean not from the Cockpit dashboard.  
E.g if I want to import the data via AJAX (Probably from frontend app), Cockpit doesn’t provide an API like that.  
So, I made one for my project here.

> **[GitHub - ronaldaug/import-collection: Cockpit plugin that can import...](https://github.com/ronaldaug/import-collection)**
>
> Cockpit plugin that can import collections via API. Only accept "json" and "csv". - GitHub - ronaldaug/import-collection: Cockpit plugin that can import collections via API. Onl...

I think this could help someone who’s looking for this type of API.
