Skip to main content
PUT
/
storage
/
streams
/
{name}
Create or update a stream
curl --request PUT \
  --url https://api.quiva.ai/storage/streams/{name} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "description": "<string>",
  "max_msgs": 2,
  "max_bytes": 2,
  "max_msg_size": 2
}
'
{
  "message": "success"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

name
string
required

Name of the stream

Body

application/json
description
string

Updated description of the stream

max_msgs
integer

Updated maximum number of messages

Required range: x >= 1
max_bytes
integer

Updated maximum size in bytes

Required range: x >= 1
max_msg_size
integer

Updated maximum message size in bytes

Required range: x >= 1

Response

Bad Request

message
string
Example:

"success"