Upload
Upload a stream of bytes to a new stream
Please note the body can be any binary data. Use the Swagger UI to test this endpoint.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
Stream configuration template JSON patches as described in RFC-6902
Query Parameters
Stream id. The stream created on this upload will bear this id
Stream name
Stream group id
Stream configuration template id
Stream patches. A map of key-value pairs where all unknown query parameters will be interpreted as patches.
Prefix keys with 'patches.' to explicitly mark the query parameter as patch (e.g. when it coincides with another parameter name).
By default, a replace patch will be applied.
To add, prefix the value with '+' (e.g. patches.key=+value).
To remove, set the value to '-' (e.g. patches.key=-).
To escape the special characters + and -, use '\' (backslash) escape-character (e.g. 'patches.key=\+value' will replace the key 'key' with value '+value').
To symbolize a path, use '.' as a separator (e.g. 'patches.key.with.path' will be parsed to '/key/with/path').
Persist the sinks of the stream matched by the tags
Persist tags to match the sinks of the stream
Tags matching strategy. 'ALL'/'ANY' of specified tags must be present on the sink to be marked as persistent
ALL
, ANY
Define dynamic webhooks for this stream as query parameters.
The general structure is "webhook[.RESOURCE[.STATE]]=http://my_domain/path".
For example:
-
define a webhook for stream completion: "webhook.stream.completed=http://my_domain/success"
-
define a webhook for all stream events: "webhook.stream=http://my_domain/stream_event"
-
define the same webhook for stream completion and failure: "webhook.stream.completed=http://my_domain/path&webhook.stream.failed=http://my_domain/path"
-
define a webhook for all events: "webhook=http://my_domain/path"
Body
The body is of type file
.