Import content into a stream Experimental; added in 9.1.0

POST /api/streams/{name}/content/import

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.

Headers

  • kbn-xsrf string Required

    A required header to protect against CSRF attacks

Path parameters

  • name string Required

    The name of the stream to import content into.

multipart/form-data

Body

  • include string Required

Responses

  • 200

    Content was imported into the stream successfully.

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\":{}}}"}