Create or replace a stream
PUT
api/v3/stream/s/:stream_idCreate or replace a stream
Path Parameters
- stream_id string requiredExample: stream_1
- application/json
Request Body
- object
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
- object
{}
{
"request": "PUT /api/v3/stream/s/stream_1?access_token=abcd_1234_abcd",
"request_id": "#r8ufc4n77y7r#",
"result_stream": {
"data": [
{
"enabled": true,
"rules": [
{
"query": "cats AND dogs",
"rule_id": "rule_1"
}
],
"stream_id": "stream_1"
}
]
},
"status_code": "0",
"status_message": "OK"
}
Loading...