Skip to content

Finish live stream

PATCH
/api/v1/videostreams/{id}/live

Roles required: Curator or Admin

Notify OpenFish that a live video stream has finished. The API takes the current time as the end time.

Parameters

Path Parameters

id*

Video Stream ID

Typeinteger
Required
Example1234567890

Responses

OK

Samples

cURL
curl -X PATCH https://openfish.appspot.com/api/v1/videostreams/{id}/live
JavaScript
fetch("https://openfish.appspot.com/api/v1/videostreams/{id}/live", { method: "PATCH" })
  .then(response => response.json())
  .then(data => console.log(data));
PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://openfish.appspot.com/api/v1/videostreams/{id}/live");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests
response = requests.patch("https://openfish.appspot.com/api/v1/videostreams/{id}/live")
print(response.json())