Request

PUT /file/5231cbe24ab63c53dc90049d/
Content-Type: multipart/form-data; boundary=BoUnDaRyStRiNg
--BoUnDaRyStRiNg
Content-Disposition: form-data; name="uploaded_file"; filename="file put.txt"
Content-Type: text/plain
File 1
--BoUnDaRyStRiNg--

Response

202 Accepted
Content-Type: application/json
{
    "size": 6, 
    "stream_link": "/file/test-company/5231cbe24ab63c53dc90049d/s/", 
    "name": "file put.txt", 
    "created_at": "2013-09-12T14:12:48.684000+00:00", 
    "modified_at": "2013-09-12T14:12:52.742838+00:00", 
    "sha1_checksum": "b68d386047afd22136cb1e7b4d9a961c446f73f2", 
    "download_link": "/file/test-company/5231cbe24ab63c53dc90049d/d/", 
    "ttl": null, 
    "resource_uri": "/api/v1/file/5231cbe24ab63c53dc90049d/", 
    "id": "5231cbe24ab63c53dc90049d", 
    "issuer": "/api/v1/user/5231cbd64ab63c53dc900474/"
}

Request

PUT /file/5231cbe34ab63c53dc90049e/
Content-Type: multipart/form-data; boundary=BoUnDaRyStRiNg
--BoUnDaRyStRiNg
Content-Disposition: form-data; name="uploaded_file"; filename="file put.txt"
Content-Type: text/plain
Test file 2
--BoUnDaRyStRiNg--

Response

202 Accepted
Content-Type: application/xml; charset=utf-8
<object>
  <stream_link>/file/test-company/5231cbe34ab63c53dc90049e/s/</stream_link>
  <name>file put.txt</name>
  <issuer>/api/v1/user/5231cbd64ab63c53dc900474/</issuer>
  <created_at>2013-09-12T14:12:50.523000+00:00</created_at>
  <download_link>/file/test-company/5231cbe34ab63c53dc90049e/d/</download_link>
  <modified_at>2013-09-12T14:12:53.314145+00:00</modified_at>
  <sha1_checksum>bfd51137625cb95ec5150be7257c0cab7e6125ea</sha1_checksum>
  <ttl type="null"/>
  <size type="integer">11</size>
  <id>5231cbe34ab63c53dc90049e</id>
  <resource_uri>/api/v1/file/5231cbe34ab63c53dc90049e/</resource_uri>
</object>

Request

PUT /file/5231cbe34ab63c53dc90049f/
Content-Type: multipart/form-data; boundary=BoUnDaRyStRiNg
--BoUnDaRyStRiNg
Content-Disposition: form-data; name="uploaded_file"; filename="file put.txt"
Content-Type: text/plain
Test file 3
--BoUnDaRyStRiNg--

Response

202 Accepted
Content-Type: text/yaml; charset=utf-8
{created_at: '2013-09-12T14:12:51.080000+00:00', download_link: !!python/unicode '/file/test-company/5231cbe34ab63c53dc90049f/d/',
id: !!python/unicode '5231cbe34ab63c53dc90049f', issuer: !!python/unicode '/api/v1/user/5231cbd64ab63c53dc900474/',
modified_at: '2013-09-12T14:12:53.916235+00:00', name: !!python/unicode 'file put.txt',
resource_uri: !!python/unicode '/api/v1/file/5231cbe34ab63c53dc90049f/', sha1_checksum: !!python/unicode 'c193fbfb99a59408ddfe8808c6bcbb10b07748bb',
size: 11, stream_link: !!python/unicode '/file/test-company/5231cbe34ab63c53dc90049f/s/',
ttl: null}