Skip to content

Create Stream

POST
/api/v1/pipelines/streams
curl --request POST \
--url https://example.com/api/v1/pipelines/streams \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "database": "example", "schema": "example", "on_table": "example", "on_view": "example", "on_stage": "example", "append_only": false, "show_initial_rows": false, "comment": "example", "copy_grants": false, "at_timestamp": "example", "before_timestamp": "example" }'

Create a new stream.

Args: request: Stream creation parameters

Returns: StreamOperationResponse with operation result

Raises: HTTPException: If stream creation fails

X-Environment-Id
Any of:
string
Media typeapplication/json
StreamCreateRequest

Request model for creating a stream.

object
name
required
Name

Stream name

string
database
required
Database

Database name

string
schema
required
Schema

Schema name

string
on_table
Any of:
string
on_view
Any of:
string
on_stage
Any of:
string
append_only
Append Only

Create append-only stream

boolean
show_initial_rows
Show Initial Rows

Include initial rows at creation

boolean
comment
Any of:
string
copy_grants
Copy Grants

Copy grants from source object

boolean
at_timestamp
Any of:
string
before_timestamp
Any of:
string

Successful Response

Media typeapplication/json
StreamOperationResponse

Response model for stream operations.

object
stream_name
required
Stream Name

Stream name

string
operation
required
Operation

Operation performed (create, delete)

string
success
required
Success

Whether operation was successful

boolean
message
required
Message

Operation result message

string
Examplegenerated
{
"stream_name": "example",
"operation": "example",
"success": true,
"message": "example"
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}