# Importing Dashboard via CURL fails with 500 error

**URL:** <https://discuss.elastic.co/t/importing-dashboard-via-curl-fails-with-500-error/230421>\
**Category:** Kibana\
**Created:** [April 29, 2020, 6:31pm UTC](https://discuss.elastic.co/t/importing-dashboard-via-curl-fails-with-500-error/230421 "2020-04-29T18:31:16Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Luca\_Belluccini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luca_belluccini/32/33239_2.png) [@Luca\_Belluccini](https://discuss.elastic.co/u/Luca_Belluccini)\
**Post date:** [April 29, 2020, 9:27pm UTC](https://discuss.elastic.co/t/importing-dashboard-via-curl-fails-with-500-error/230421/6 "2020-04-29T21:27:29Z")

</div>

> [@jerrac](#):
>
> I'd still like to figure out how to push via the import api, especially if I find non-Elastic created dashboards to import.

The command you're using is correct, but it seems the dashboards we have bundled with Beats are pre-processed by the Beat binary.

To import:

```auto
curl -s -XPOST https://<kibana:port>/api/kibana/dashboards/import -d "@dashboard.json" -u elastic:password -Hkbn-xsrf:true -Hcontent-type:application/json

```

To export:

```auto
curl -s https://<kibana:port>/api/kibana/dashboards/export?dashboard=<dashboard-id> -u elastic:password -o dashboard.json

```

---

_[View the full topic](https://discuss.elastic.co/t/importing-dashboard-via-curl-fails-with-500-error/230421)._
