*
for wildcard subdomains. Empty arrays allow the video to be viewed on any origin.{
"allowedOrigins": [
"example.com"
],
"creator": "creator-id_abcde12345",
"expiry": "2021-01-02T02:20:00Z",
"maxDurationSeconds": 1,
"thumbnailTimestampPct": 0.529241,
"watermark": {
"uid": "ea95132c15732412d22c1476fa83f27a"
}
}
curl --location --request POST 'https://api.cloudflare.com/client/v4/accounts//stream/direct_upload' \
--header 'Content-Type: application/json' \
--data-raw '{
"allowedOrigins": [
"example.com"
],
"creator": "creator-id_abcde12345",
"expiry": "2021-01-02T02:20:00Z",
"maxDurationSeconds": 1,
"thumbnailTimestampPct": 0.529241,
"watermark": {
"uid": "ea95132c15732412d22c1476fa83f27a"
}
}'
{
"errors": [],
"messages": [],
"result": {
"uid": "ea95132c15732412d22c1476fa83f27a",
"uploadURL": "www.example.com/samplepath",
"watermark": {
"created": "2014-01-02T02:20:00Z",
"downloadedFrom": "https://company.com/logo.png",
"height": 0,
"name": "Marketing Videos",
"opacity": 0.75,
"padding": 0.1,
"position": "center",
"scale": 0.1,
"size": 29472,
"uid": "ea95132c15732412d22c1476fa83f27a",
"width": 0
}
},
"success": true
}