PUT
/
streaming
/
streams
/
{stream_id}
/
start_recording
curl --request PUT \
  --url https://api.gcore.com/streaming/streams/{stream_id}/start_recording \
  --header 'APIKey: <api-key>'
{
  "data": {
    "stream": {
      "id": 123,
      "client": {
        "id": 777,
        "storage_usage_mb": 2048,
        "storage_limit_mb": 10240
      }
    }
  },
  "warnings": [
    {
      "key": "client_storage_almost_exceeded",
      "source_object": {
        "id": 918,
        "type": "client"
      },
      "meta": {
        "storage_usage_mb": 1200,
        "storage_limit_mb": 2048
      }
    }
  ],
  "errors": [
    {}
  ]
}

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

stream_id
integer
required

ID of a stream to record

Response

200
application/json

Recording task was set successfully, but there are some actions you need to pay attention

The response is of type object.