API Method: document items create (multiple)

POST /:user_id/documents/:folder_id/items

Creates multiple document items in the specified documents folder of the specified user account. Returns a representation of the created document items with a 201 Created HTTP status code. To create a single document item, see document items create.

URL:

http://subsift.ilrt.bris.ac.uk/user_id/documents/folder_id/items.format

Formats (about return formats):

csv, json, rdf, terms, xml, yaml

HTTP Methods (about HTTP methods):

POST

Requires Authentication (about authentication):

true

Parameters:

Usage Examples:

cURL (about cURL):

curl -X POST -H "Token:mytoken" -d "items_list=
doc1,An example document,Lorem ipsum dolor sit amet...%0A
doc2,Another example document,Ut enim ad minim veniam...%0A"
-d "full=1" http://subsift.ilrt.bris.ac.uk/kdd09/documents/pc/items

Response (about return values):

XML example:

<?xml version="1.0" encoding="UTF-8"?>
<result>
  <item>
    <name>doc1</name>
    <created>1278025011</created>
    <description>An example document</description>
    <id>doc1</id>
    <modified>1278025011</modified>
    <source>text</source>
    <text>Lorem ipsum dolor sit amet...</text>
  </item>
  <item>
    <name>doc2</name>
    <created>1278025011</created>
    <description>Another example document</description>
    <id>doc2</id>
    <modified>1278025011</modified>
    <source>text</source>
    <text>Ut enim ad minim veniam...</text>
  </item>
</result>