Fork a stream Technical Preview

POST /api/streams/{name}/_fork

Forks a wired stream and creates a child stream

Headers

  • kbn-xsrf string Required

    A required header to protect against CSRF attacks

Path parameters

application/json

Body

POST /api/streams/{name}/_fork
curl \
 --request POST http://localhost:5622/api/streams/{name}/_fork \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --header "kbn-xsrf: true" \
 --data '{"if":{"field":"string","operator":"exists"},"stream":{"name":"string"}}'
Request examples
# Headers
kbn-xsrf: true

# Payload
{
  "if": {
    "field": "string",
    "operator": "exists"
  },
  "stream": {
    "name": "string"
  }
}