Create an empty draft VOD in the 'processing' state. The draft is the durable anchor for an upload: the client creates it first, then passes its URI to place.stream.media.createUpload so the upload's processing fills this draft. Lets the user start editing metadata while the upload runs, and supports re-upload (a failed upload leaves the draft intact; a new createUpload with the same draftUri re-points it).
POST
/xrpc/place.stream.vod.createDraft
const url = 'https://example.com/xrpc/place.stream.vod.createDraft';const options = {method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{}'};
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.createDraft \ --header 'Content-Type: application/json' \ --data '{}'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
Example generated
{}Responses
Section titled “Responses”Success
Media typeapplication/json
object
uri
required
The ats:// URI of the newly created draft record.
string
Example generated
{ "uri": "example"}