Promote a ready draft VOD to a public place.stream.video record. The server carries over source and durationMs from the draft, backfills a generated thumbnail if the draft has none, writes the video record via putRecord, then deletes the draft.
POST
/xrpc/place.stream.vod.publishDraft
const url = 'https://example.com/xrpc/place.stream.vod.publishDraft';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"uri":"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.vod.publishDraft \ --header 'Content-Type: application/json' \ --data '{ "uri": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
uri
required
The ats:// URI of the draft to publish. Must have status ‘ready’.
string
Example generated
{ "uri": "example"}Responses
Section titled “Responses”Success
Media typeapplication/json
object
videoUri
required
AT-URI of the created place.stream.video record.
string format: uri
videoCid
required
CID of the created place.stream.video record.
string format: cid
Example generated
{ "videoUri": "https://example.com", "videoCid": "example"}Bad Request
