curl --request PATCH \
--url https://api.videodb.io/rtstream/{stream_id}/ \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"name": "Updated Stream Name",
"sample_rate": 15
}
'{
"success": true,
"data": {
"id": "rts-12345",
"name": "My Stream",
"status": "connected",
"sample_rate": 30,
"media_types": [
"video",
"audio"
],
"collection_id": "default",
"store": false,
"created_at": "2023-11-07T05:31:56Z"
}
}Update RTStream configuration
curl --request PATCH \
--url https://api.videodb.io/rtstream/{stream_id}/ \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"name": "Updated Stream Name",
"sample_rate": 15
}
'{
"success": true,
"data": {
"id": "rts-12345",
"name": "My Stream",
"status": "connected",
"sample_rate": 30,
"media_types": [
"video",
"audio"
],
"collection_id": "default",
"store": false,
"created_at": "2023-11-07T05:31:56Z"
}
}sample_rate take effect immediately on the running streamAPI key for authentication (sk-xxx format)
"rts-12345"