Import content into a stream Technical Preview; 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.

Links content objects to 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" \
 --form "content=<binary zip archive>" \
 --form "include={"objects":{"all":{}}}"
Request example
{"content" => "<binary zip archive>", "include" => "{\"objects\":{\"all\":{}}}"}