PUT
/
streams
/
{stream}
curl --request PUT \
  --url https://{basin}.b.aws.s2.dev/v1alpha/streams/{stream} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "config": null
}'
{
  "created_at": 1,
  "deleted_at": 1,
  "name": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

s2-request-token
string

Path Parameters

stream
string
required

Name of the stream.

Body

application/json

Create stream request.

config
object | null

Configuration for the new stream.

Response

201
application/json

Stream information.

created_at
integer
required

Creation time in seconds since Unix epoch.

Required range: x > 0
name
string
required

Stream name.

deleted_at
integer | null

Deletion time in seconds since Unix epoch, if the stream is being deleted.

Required range: x > 0