Getting 400 when uploading video file programmatically

Try part=1 instead of index=1 in your URL. Curious if that’s the problem.