Community articleUpdating a file folder
Added by IBM contributorIBM on March 25, 2014
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Update the Atom document representation of the file folder.



Update the Atom document representation of the file folder.

This method replaces the existing Atom document for the file folder. For information about how to first retrieve the Atom document for the folder that you want to update, see Retrieving a file folder.

You must authenticate this request.

Note: {collection-id} is the value of the <td:uuid> element in the collection's Atom entry document.

You can use this input header in a POST request instead of using the PUT request.

Input

An updated Atom entry document for the file folder. The content type must be specified as application/atom+xml.

Output

Atom entry document with the changes made to the file folder.

Input
Method URI Description
PUT /files/basic/api/collection/{collection-id}/entry Updates the Atom document for the file folder.
Content Type: application/atom+xml
Name Type Optional Description
collection-id
string No {collection-id} is the value of the <td:uuid> element in the collection's Atom entry document.
Name Type Optional Description
X-Method-Override
string Yes Tunnels a PUT request over HTTP POST
Output
Content Type: application/atom+xml
Code Description
200
OK. Indicates that the file collection entry was successfully updated. If an error occurs, this header will contain one of the error codes below.
401
Unauthorized.
404
Not Found.