Spaces method and path for this operation:
post /s/{space_id}/api/streams/{name}/content/export
Refer to Spaces for more information.
Exports the content associated to a stream.
[Required authorization] Route required privileges: manage_stream.
POST
/api/streams/{name}/content/export
curl \
--request POST 'https://localhost:5601/api/streams/{name}/content/export' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{"description":"Nginx stream content pack","include":{"objects":{"all":{}}},"name":"nginx-pack","version":"1.0.0"}'
Request example
{
"description": "Nginx stream content pack",
"include": {
"objects": {
"all": {}
}
},
"name": "nginx-pack",
"version": "1.0.0"
}