{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Clips a video based on the specified start and end times provided in seconds.","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/stream_account_identifier"}},"required":["account_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/stream_videoClipStandard"}},"required":["path","body"],"additionalProperties":false,"definitions":{"stream_account_identifier":{"description":"The account identifier tag.","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"stream_videoClipStandard":{"type":"object","properties":{"allowedOrigins":{"$ref":"#/definitions/stream_allowedOrigins"},"clippedFromVideoUID":{"$ref":"#/definitions/stream_clipped_from_video_uid"},"creator":{"$ref":"#/definitions/stream_creator"},"endTimeSeconds":{"$ref":"#/definitions/stream_end_time_seconds"},"input":{"description":"A video's URL. Preferred over 'url'.","type":"string","format":"uri","examples":["https://example.com/myvideo.mp4"]},"meta":{"$ref":"#/definitions/stream_media_metadata"},"name":{"description":"A name for the video.","type":"string","examples":["myvideo.mp4"]},"requireSignedURLs":{"$ref":"#/definitions/stream_requireSignedURLs"},"scheduledDeletion":{"$ref":"#/definitions/stream_scheduledDeletion"},"startTimeSeconds":{"$ref":"#/definitions/stream_start_time_seconds"},"thumbnailTimestampPct":{"$ref":"#/definitions/stream_thumbnailTimestampPct"},"url":{"description":"A video's URL (legacy field, use 'input' instead).","type":"string","format":"uri","examples":["https://example.com/myvideo.mp4"]},"watermark":{"$ref":"#/definitions/stream_watermarkAtUpload"}},"required":["clippedFromVideoUID","startTimeSeconds","endTimeSeconds"]},"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_clipped_from_video_uid":{"description":"The unique video identifier (UID).","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_end_time_seconds":{"description":"Specifies the end time for the video clip in seconds.","type":"integer"},"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_start_time_seconds":{"description":"Specifies the start time for the video clip in seconds.","type":"integer"},"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_watermarkAtUpload":{"type":"object","properties":{"uid":{"description":"The unique identifier for the watermark profile.","type":"string","maxLength":32,"examples":["ea95132c15732412d22c1476fa83f27a"]}}}}},"name":"Clip videos given a start and end time","id":"cloudflare.stream-video-clipping-clip-videos-given-a-start-and-end-time","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353"},"body":{"clippedFromVideoUID":"023e105f4ecef8ad9ca31a8372d0c353","startTimeSeconds":1,"endTimeSeconds":1}},"maxRequests":1,"summary":false}}