Skip to main content
PATCH
/
streaming
/
videos
/
v1
/
{video_id}
cURL
curl --request PATCH \
  --url https://api.mottostreaming.com/streaming/videos/v1/{video_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "video_id": "<string>",
  "video": {
    "name": "<string>",
    "localized_title": {},
    "playlists": [
      {
        "name": "<string>",
        "dvr_settings": {
          "window_size_seconds": 123
        },
        "visibility_markers": [
          {
            "offset": "<string>",
            "priority": "<string>"
          }
        ]
      }
    ]
  },
  "update_mask": "<string>"
}
'
import requests

url = "https://api.mottostreaming.com/streaming/videos/v1/{video_id}"

payload = {
"video_id": "<string>",
"video": {
"name": "<string>",
"localized_title": {},
"playlists": [
{
"name": "<string>",
"dvr_settings": { "window_size_seconds": 123 },
"visibility_markers": [
{
"offset": "<string>",
"priority": "<string>"
}
]
}
]
},
"update_mask": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
video_id: '<string>',
video: {
name: '<string>',
localized_title: {},
playlists: [
{
name: '<string>',
dvr_settings: {window_size_seconds: 123},
visibility_markers: [{offset: '<string>', priority: '<string>'}]
}
]
},
update_mask: '<string>'
})
};

fetch('https://api.mottostreaming.com/streaming/videos/v1/{video_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mottostreaming.com/streaming/videos/v1/{video_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'video_id' => '<string>',
'video' => [
'name' => '<string>',
'localized_title' => [

],
'playlists' => [
[
'name' => '<string>',
'dvr_settings' => [
'window_size_seconds' => 123
],
'visibility_markers' => [
[
'offset' => '<string>',
'priority' => '<string>'
]
]
]
]
],
'update_mask' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.mottostreaming.com/streaming/videos/v1/{video_id}"

payload := strings.NewReader("{\n \"video_id\": \"<string>\",\n \"video\": {\n \"name\": \"<string>\",\n \"localized_title\": {},\n \"playlists\": [\n {\n \"name\": \"<string>\",\n \"dvr_settings\": {\n \"window_size_seconds\": 123\n },\n \"visibility_markers\": [\n {\n \"offset\": \"<string>\",\n \"priority\": \"<string>\"\n }\n ]\n }\n ]\n },\n \"update_mask\": \"<string>\"\n}")

req, _ := http.NewRequest("PATCH", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.patch("https://api.mottostreaming.com/streaming/videos/v1/{video_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"video_id\": \"<string>\",\n \"video\": {\n \"name\": \"<string>\",\n \"localized_title\": {},\n \"playlists\": [\n {\n \"name\": \"<string>\",\n \"dvr_settings\": {\n \"window_size_seconds\": 123\n },\n \"visibility_markers\": [\n {\n \"offset\": \"<string>\",\n \"priority\": \"<string>\"\n }\n ]\n }\n ]\n },\n \"update_mask\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.mottostreaming.com/streaming/videos/v1/{video_id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"video_id\": \"<string>\",\n \"video\": {\n \"name\": \"<string>\",\n \"localized_title\": {},\n \"playlists\": [\n {\n \"name\": \"<string>\",\n \"dvr_settings\": {\n \"window_size_seconds\": 123\n },\n \"visibility_markers\": [\n {\n \"offset\": \"<string>\",\n \"priority\": \"<string>\"\n }\n ]\n }\n ]\n },\n \"update_mask\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{
  "video": {
    "id": "<string>",
    "name": "<string>",
    "localized_title": {},
    "project_id": "<string>",
    "playlists": [
      {
        "id": "<string>",
        "name": "<string>",
        "private_url": "<string>",
        "public_url": "<string>",
        "dvr_settings": {
          "window_size_seconds": 123
        },
        "org_id": "<string>",
        "project_id": "<string>",
        "video_id": "<string>",
        "visibility_markers": [
          {
            "offset": "<string>",
            "priority": "<string>"
          }
        ]
      }
    ]
  }
}
{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

video_id
string
required

Body

application/json
video_id
string
required
video
object
update_mask
string<field-mask>

Response

OK

video
object