PATCH
/
streaming
/
restreams
/
{restream_id}
curl --request PATCH \
  --url https://api.gcore.com/streaming/restreams/{restream_id} \
  --header 'APIKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "restream": {
    "name": "first restream",
    "active": true,
    "uri": "rtmp://a.rtmp.youtube.com/live/k17a-13s8",
    "stream_id": 20,
    "client_user_id": 10
  }
}'
{
  "name": "first restream",
  "active": true,
  "uri": "rtmp://a.rtmp.youtube.com/live/k17a-13s8",
  "stream_id": 20,
  "client_user_id": 10
}

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

restream_id
integer
required

Restream ID.
IDs of all created restreams can be received via Get All Restreams request

Body

application/json

Response

200
application/json

Successful

The response is of type object.