Skip to content

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
curl --request POST \
--url https://example.com/xrpc/place.stream.vod.publishDraft \
--header 'Content-Type: application/json' \
--data '{ "uri": "example" }'
Media typeapplication/json
object
uri
required

The ats:// URI of the draft to publish. Must have status ‘ready’.

string

Example generated

{
"uri": "example"
}

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

Media typeapplication/json
object
error
required
One of:
string
Allowed value: NotFound
message
required
string

Example

{
"error": "NotFound"
}