Spaces method and path for this operation:
post /s/{space_id}/api/streams/{name}/content/import
Refer to Spaces for more information.
Imports stream structure (routing, mappings, and processing) from a content pack into a stream.
[Required authorization] Route required privileges: manage_stream.
POST
/api/streams/{name}/content/import
curl \
--request POST 'https://localhost:5601/api/streams/{name}/content/import' \
--header "Authorization: $API_KEY" \
--header "Content-Type: multipart/form-data" \
--header "kbn-xsrf: true"
Request example
{"content" => "<binary zip archive>", "include" => "{\"objects\":{\"all\":{}}}"}