Skip to content

Commit

Permalink
upload file docs
Browse files Browse the repository at this point in the history
  • Loading branch information
skyfrog committed Feb 28, 2017
1 parent 1850e3e commit d593a11
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions source/includes/_item.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,21 @@ It returns X-Cursor HTTP header. Cursor is a unix timestamp (in milliseconds) of

* `POST /item` will create new item

### 2.1 Upload file

* `POST /file/upload` will upload file and create respective file item
* Request Content-Type should be `multipart/form-data`

### Mandatory params:
Param | Type | Description
------------ | ------------- | ------------
<code>session_id</code>| text | User session.
<code>file</code>| binary | Content of file to upload.

### Response fields:
Field | Type | Description
------------ | ------------- | ------------
<code>id</code>| long | Globally unique primary identifier for a file item.

## 3. Update Item

Expand Down

0 comments on commit d593a11

Please sign in to comment.