# Kibana API for automatic Export all

**URL:** https://discuss.elastic.co/t/kibana-api-for-automatic-export-all/201243
**Category:** Kibana
**Created:** [September 26, 2019, 1:32pm UTC](https://discuss.elastic.co/t/kibana-api-for-automatic-export-all/201243 "2019-09-26T13:32:31Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![GitsBdr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gitsbdr/32/58828_2.png) [@GitsBdr](https://discuss.elastic.co/u/GitsBdr)
#### Post date: [September 30, 2019, 11:10am UTC](https://discuss.elastic.co/t/kibana-api-for-automatic-export-all/201243/3 "2019-09-30T11:10:01Z")

</div>

Hi @mikecote and thanks for your help here

I started by checking this doc too but it has never worked for me and I couldn't figure out why ...

```
curl -k -X POST "https://myIP:5601/api/saved_objects/_export" -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d'
{
   "type": "dashboard"
}
'

```

`{"statusCode":400,"error":"Bad Request","message":"child \"attributes\" fails because [\"attributes\" is required]. \"type\" is not allowed","validation":{"source":"payload","keys":["attributes","type"]}}`

So I tried :

```
curl -k -X POST "https://myIP:5601/api/saved_objects/_export" -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d'
{
   "attributes": { "type": "dashboard" }
}
'

```

`{"message":"Unsupported saved object type: '_export': Bad Request","statusCode":400,"error":"Bad Request"}`

---

_[View the full topic](https://discuss.elastic.co/t/kibana-api-for-automatic-export-all/201243)._
