Add a file to a folder or multiple folders 



Add a file to a folder or multiple folders programmatically.

See Authenticating requests for information about how to authenticate the request.

Table 1. Atom API request details

Method Resource address Input representation Description
POST /basic/api/myuserlibrary/document/{document-id}/feed Entry or Feed defining the folder Adds a file to the specified folder

{document-id} is the value of the <td:uuid> or <td:label> elements in the file's Atom entry document.

Provide the following headers.

Table 2. Input headers

Header Required Description
Content-Type Yes Used to specify the mime type for the content being sent to the server.
Content-Language Yes Specifies the language of the content being sent to the server. All contents are handled using UTF-8 encoding on the server.

You can use the following input parameters.

Table 3. Input parameter

Parameter Description
identifier Indicates how the document is identified in the {document-id} variable segment of the web address. By default, look up is performed with the expectation that the URL contains the value from the <td:uuid> element of a file Atom entry. Options are uuid and label . Specify label if the URL instead contains the value from the <td:label> element of a file Atom entry.

Input


Provide one of the following input types:

Output


None

Returned HTTP headers

HTTP/1.1 204 No Content

Error codes


Parent topic

Work with files



January 5, 2012 8:45:25 AM
   

 

Jan 5, 2012 8:45:25 AM 1

});