Thanks @Larry_Gregory , but I must be missing something here. Running 7.4.2 and using the example above in DevTools (with my own id of course) gives me this:
#! Deprecation: [types removal] Specifying types in document index requests is deprecated, use the typeless endpoints instead (/{index}/_doc/{id}, /{index}/_doc, or /{index}/_create/{id}).
{
"_index" : "api",
"_type" : "saved_objects",
"_id" : "_export",
"_version" : 6,
"result" : "updated",
"_shards" : {
"total" : 2,
"successful" : 1,
"failed" : 0
},
"_seq_no" : 5,
"_primary_term" : 1
}
I was expecting back the json of the exported dashboard (and all of the other stuff). If I try searching that index I get back the exact object text that I sent.
If I try it on the command line thusly:
curl -X POST -H 'kbn-xsrf: true' http://localhost:5601/api/saved_objects/_export -d '
{
"objects":
[
{
"type": "dashboard",
"id": "7298b6d0-0cbb-11ea-9d6a-8958e35fe94b"
}
],
"includeReferencesDeep": true
} '
I get the following error:
{"statusCode":400,"error":"Bad Request","message":"\"{ \"objects\": [{\"type\": \"dashboard\",\"id\": \"7298b6d0-0cbb-11ea-9d6a-8958e35fe94b\" } ],\"includeReferencesDeep\": true}\" is not allowed. \"value\" must contain at least one of [type, objects]","validation":{"source":"payload","keys":["{ "objects": [{"type": "dashboard","id": "7298b6d0-0cbb-11ea-9d6a-8958e35fe94b" } ],"includeReferencesDeep": true}","value"]}}
So I am still messing with it. Thanks.