Rewrite a place.stream.video record in place: retitle, redescribe or retag it, or point it at a finished upload's tracks (publishing them if the upload has none yet: the repair for a record published without tracks, or the way to point a record at a re-finalized VOD). Fields left out are kept; an empty description or tag list clears it. The caller must be the record's owner or hold livestream.manage from them; the record is written with the owner's session.
POST
/xrpc/place.stream.media.updateVideo
const url = 'https://example.com/xrpc/place.stream.media.updateVideo';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"uri":"https://example.com","title":"example","description":"example","tags":["example"],"uploadId":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/xrpc/place.stream.media.updateVideo \ --header 'Content-Type: application/json' \ --data '{ "uri": "https://example.com", "title": "example", "description": "example", "tags": [ "example" ], "uploadId": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
uri
required
The place.stream.video record.
string format: uri
title
string
description
string
tags
Array<string>
uploadId
A finished upload whose tracks become the record’s source and whose duration the record’s.
string
Example generated
{ "uri": "https://example.com", "title": "example", "description": "example", "tags": [ "example" ], "uploadId": "example"}Responses
Section titled “Responses”Success
Media typeapplication/json
object
uri
required
string format: uri
cid
required
string format: cid
Example generated
{ "uri": "https://example.com", "cid": "example"}Bad Request
