post https://api.twelvelabs.io/v1.1/tasks
Use this method to create a new video indexing task that uploads a video to the platform and makes it searchable. Note the following about creating a new video indexing task:
- To upload a file that resides on the local file system, pass the
video_file
parameter. It must be a stream of bytes encoded asmultipart/form-data
. - To upload a file from a publicly accessible URL, pass the
video_url
parameter with the URL of your video. It must be astring
. - You must specify at least one of the
video_file
andvideo_url
parameters. If you specify both thevideo_url
andvideo_file
parameters in the same request, thevideo_url
parameter takes precedence overvideo_file
. - To provide a transcription file, you must set the
provide_transcription
parameter totrue
and specify at least one of thetranscription_file
andtranscription_url
parameters:- Use the
transcription_file
parameter to provide a transcription from the local file system. It must be a stream of bytes encoded asmultipart/form-data
. - Use the
transcription_url
parameter to provide a transcription file from a publicly accessible URL. It must be astring
.
- Use the