Reconfigure a stream.
curl --request PATCH \
--url https://{basin}.b.s2.dev/v1/streams/{stream} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'{
"delete_on_empty": {
"min_age_secs": 1
},
"retention_policy": {
"age": 1
},
"storage_class": "standard",
"timestamping": {
"mode": "client-prefer",
"uncapped": true
}
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}streams
Reconfigure a stream.
Update only provided fields in an S2 stream’s configuration; omitted fields are left unchanged.
PATCH
/
streams
/
{stream}
Reconfigure a stream.
curl --request PATCH \
--url https://{basin}.b.s2.dev/v1/streams/{stream} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'{
"delete_on_empty": {
"min_age_secs": 1
},
"retention_policy": {
"age": 1
},
"storage_class": "standard",
"timestamping": {
"mode": "client-prefer",
"uncapped": true
}
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your access token.
Path Parameters
Stream name.
Required string length:
1 - 512Body
application/json
Delete-on-empty configuration.
Show child attributes
Show child attributes
Retention policy for the stream. If unspecified, the default is to retain records for 7 days.
- Option 1
- Option 2
Show child attributes
Show child attributes
Storage class for recent writes.
Available options:
standard, express Timestamping behavior.
Show child attributes
Show child attributes
Response
Delete-on-empty configuration.
Show child attributes
Show child attributes
Retention policy for the stream. If unspecified, the default is to retain records for 7 days.
- Option 1
- Option 2
Show child attributes
Show child attributes
Storage class for recent writes.
Available options:
standard, express Timestamping behavior.
Show child attributes
Show child attributes

