PUT Video

This operation is used to PUT a new resource (video) to Vippy. To upload a video to Vippy you need to set some extra headers in your request.

  • Content-Type (required, content type of your video)
  • Content-Length (required, the size of your video)
  • x-vpy-video (required, path to the video you are uploading)
  • x-vpy-title (required, the title which Vippy will create your video under)
  • Content-MD5 (optional, md5 hash of your video file)
  • x-vpy-description (optional, sets the description on your video)
  • Expect (optional, useful if you plan to upload large files to Vippy)
  • x-vpy-uploadedby (optional, name of the person which is uploading the file)
  • x-vpy-tags (optional, comma separated list of tags)
  • x-vpy-quality (optional, defines the quality Vippy will encode your video in. Can be set to lower, normal or higher)
  • x-vpy-notify (optional, you can set an url which Vippy will do a HTTP post to when the upload is complete, the HTTP post will include videoId and status of your video)

PUT /video HTTP/1.1
Host: rest.vippy.co
Date: Thu, 27 Oct 2011 09:04:55 +0000
Authorization: Vippy 3WwgnHte8dn4Jyt250o:3cO0hCTsdCxTJ1jPXo7+rYSu0g=
Content-Type: video/mp4
Content-Length: 123456789
x-vpy-video: http://example.com/video.mp4
x-vpy-title: Some title

[123456789 bytes of data]