PATCH
/
streaming
/
streams
/
{stream_id}
Change live stream
curl --request PATCH \
  --url https://api.gcore.com/streaming/streams/{stream_id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "stream": {
    "name": "Live stream by user e4d0f942-f35d",
    "pull": true,
    "active": true,
    "auto_record": false,
    "client_user_id": 1001,
    "uri": "srt://domain.com:5000/?streamid=12345",
    "html_overlay": false
  }
}'
{
  "name": "Live stream by user e4d0f942-f35d",
  "pull": true,
  "active": true,
  "auto_record": false,
  "client_user_id": 1001,
  "uri": "srt://domain.com:5000/?streamid=12345",
  "html_overlay": false
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

stream_id
integer
required

Stream ID.
IDs of all created streams can be received via Get All Streams request

Body

application/json

Response

200 - application/json

Successful

The response is of type object.