{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Uploads a video to Stream from a provided URL.","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/stream_account_identifier"}},"required":["account_id"],"additionalProperties":false},"headers":{"type":"object","properties":{"Upload-Creator":{"$ref":"#/definitions/stream_creator"}},"required":[],"additionalProperties":false},"body":{"$ref":"#/definitions/stream_video_copy_request"}},"required":["path","body"],"additionalProperties":false,"definitions":{"stream_account_identifier":{"description":"The account identifier tag.","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"stream_creator":{"description":"A user-defined identifier for the media creator.","type":"string","maxLength":64,"examples":["creator-id_abcde12345"]},"stream_video_copy_request":{"description":"Copy upload request. Provide `input` (preferred) or `url` (deprecated).","type":"object","properties":{"allowedOrigins":{"$ref":"#/definitions/stream_allowedOrigins"},"creator":{"$ref":"#/definitions/stream_creator"},"input":{"description":"A video's URL. The server must be publicly routable and support `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. This is the preferred field over `url`.","type":"string","format":"uri","examples":["https://example.com/myvideo.mp4"]},"meta":{"$ref":"#/definitions/stream_media_metadata"},"name":{"description":"A video's name. Used for legacy compatibility.","type":"string","examples":["myvideo.mp4"]},"requireSignedURLs":{"$ref":"#/definitions/stream_requireSignedURLs"},"scheduledDeletion":{"$ref":"#/definitions/stream_scheduledDeletion"},"thumbnailTimestampPct":{"$ref":"#/definitions/stream_thumbnailTimestampPct"},"url":{"description":"A video's URL. The server must be publicly routable and support `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. This field is deprecated in favor of `input`.","type":"string","format":"uri","examples":["https://example.com/myvideo.mp4"]},"watermark":{"$ref":"#/definitions/stream_watermark_at_upload"}},"anyOf":[{"required":["input"],"type":"object"},{"required":["url"],"type":"object"}]},"stream_allowedOrigins":{"description":"Lists the origins allowed to display the video. Enter allowed origin domains in an array and use `*` for wildcard subdomains. Empty arrays allow the video to be viewed on any origin.","type":"array","items":{"type":"string"},"examples":[["example.com"]]},"stream_media_metadata":{"description":"A user modifiable key-value store used to reference other systems of record for managing videos.","type":"object","examples":[{"name":"video12345.mp4"}]},"stream_requireSignedURLs":{"description":"Indicates whether the video can be a accessed using the UID. When set to `true`, a signed token must be generated with a signing key to view the video.","type":"boolean","default":false,"examples":[true]},"stream_scheduledDeletion":{"description":"Indicates the date and time at which the video will be deleted. Omit the field to indicate no change, or include with a `null` value to remove an existing scheduled deletion. If specified, must be at least 30 days from upload time.","type":"string","format":"date-time","examples":["2014-01-02T02:20:00Z"]},"stream_thumbnailTimestampPct":{"description":"The timestamp for a thumbnail image calculated as a percentage value of the video's duration. To convert from a second-wise timestamp to a percentage, divide the desired timestamp by the total duration of the video.  If this value is not set, the default thumbnail image is taken from 0s of the video.","type":"number","default":0,"maximum":1,"minimum":0,"examples":[0.529241]},"stream_watermark_at_upload":{"type":"object","properties":{"uid":{"description":"The unique identifier for the watermark profile.","type":"string","maxLength":32,"examples":["ea95132c15732412d22c1476fa83f27a"]}}}}},"name":"Upload videos from a URL","id":"cloudflare.stream-videos-upload-videos-from-a-url","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353"},"body":{"input":"https://example.com/myvideo.mp4"}},"maxRequests":1,"summary":false}}