This endpoint is in preview and may be modified or removed at any time.
To use this endpoint, add preview=true
to the request query parameters.
Creates a streaming dataset with a stream on the specified branch, or if no branch is specified, on the default branch ('master' for most enrollments). For more information on streaming datasets, refer to the streams user documentation.
Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:streams-write
.
object
string
string
The unique resource identifier (RID) of a Folder.
object
The Foundry schema to apply to the new stream.
string
The branch to create the initial stream on. If not specified, the default branch will be used ('master' for most enrollments).
integer
The number of partitions for the Foundry stream.
Generally, each partition can handle about 5 mb/s of data, so for higher volume streams, more partitions are recommended.
If not specified, 1 partition is used.
This value cannot be changed later.
string
(enum)A conceptual representation of the expected shape of the data for a stream. HIGH_THROUGHPUT and LOW_LATENCY are not compatible with each other. Defaults to LOW_LATENCY.
Enum values: LOW_LATENCY
, HIGH_THROUGHPUT
boolean
Whether or not compression is enabled for the stream. Defaults to false.
object
string
The Resource Identifier (RID) of a Dataset.
string
string
The unique resource identifier (RID) of a Folder.
1
2
3
4
5
curl -X POST \
-H "Content-type: application/json" \
-H "Authorization: Bearer $TOKEN" \
"https://$HOSTNAME/api/v2/streams/datasets/create?preview=true" \
-d '{"parentFolderRid":"ri.compass.main.folder.c410f510-2937-420e-8ea3-8c9bcb3c1791","partitionsCount":1,"streamType":"LOW_LATENCY","name":"My Dataset","branchName":"master","compressed":false}'
1
2
3
4
5
{
"parentFolderRid": "ri.compass.main.folder.c410f510-2937-420e-8ea3-8c9bcb3c1791",
"name": "My Dataset",
"rid": "ri.foundry.main.dataset.c26f11c8-cdb3-4f44-9f5d-9816ea1c82da"
}