Community articleWorking with files
Added by IBM contributorIBM on June 23, 2014
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Using the Atom Publishing Protocol, also known as AtomPub, you can get feeds of the files in a collection and can create, update, or delete files and their associated metadata.



Using the Atom Publishing Protocol, also known as AtomPub, you can get feeds of the files in a collection and can create, update, or delete files and their associated metadata.
Getting a cryptographic key
A cryptographic nonce (number used once) key is a server-specified data string that is generated each time a 401 response is made. The server returns the data string to the client, and the client then passes that string unchanged back to the server with its subsequent request. Cryptographic keys prevent unauthorized access to data and protect against replay attacks. See RFC 2617 for more information about these keys.

Adding a file
Add a file to your library programmatically.

Adding a file using a multipart POST
Add a file to your library using a multipart POST.

Adding a file or set of files to a folder
Add a file or files to a folder programmatically.

Adding a file to a folder or multiple folders
Add a file to a folder or multiple folders programmatically.

Sharing a file with a community or communities
Share a file with a community or multiple communities programmatically.

Downloading a file
Download a file from your library programmatically.

Retrieving file metadata
Retrieve an Atom document representation of the metadata for a file from your library.

Deleting a file and its metadata
Delete a file and the Atom document representation of its associated metadata from your collection.

Removing a file from a folder
Removes a file from a folder. This action does not delete the file entirely; it only removes its association with the folder.

Updating a file
Update a file in your file collection programmatically.

Updating file metadata
Update the Atom document representation of the metadata for a file from your library.

Updating file metadata using a multipart PUT
Replaces both the binary data and the file metadata for which you specify new values using passed parameters.