*
for wildcard subdomains. Empty arrays allow the video to be viewed on any origin.HTTP HEAD
requests and HTTP GET
range requests. The server should respond to HTTP HEAD
requests with a content-range
header that includes the size of the file.{
"allowedOrigins": [
"example.com"
],
"creator": "creator-id_abcde12345",
"thumbnailTimestampPct": 0.529241,
"url": "https://example.com/myvideo.mp4",
"watermark": {
"uid": "ea95132c15732412d22c1476fa83f27a"
}
}
curl --location --request POST 'https://api.cloudflare.com/client/v4/accounts//stream/copy' \
--header 'Content-Type: application/json' \
--data-raw '{
"allowedOrigins": [
"example.com"
],
"creator": "creator-id_abcde12345",
"thumbnailTimestampPct": 0.529241,
"url": "https://example.com/myvideo.mp4",
"watermark": {
"uid": "ea95132c15732412d22c1476fa83f27a"
}
}'
{
"errors": [],
"messages": [],
"result": {},
"success": true
}