Working with files
Added by IBM contributorIBM | Edited by Claudia R Elbourn on August 24, 2015
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.
GET

/files/{auth}/api/nonce

Generating a cryptographic key.
POST

/files/{auth}/api/myuserlibrary/feed

Adding a file.
POST

/files/form/api/myuserlibrary/feed

Adding a file using a multipart POST.
POST

/files/{auth}/api/myuserlibrary/feed

Adding a file using a multipart POST and the HTTP Basic Authorization endpoint.
POST

/files/{auth}/api/collection/{collection-id}/feed

Adding a file or a set of files to a folder.
POST /files/{auth}/api/communitycollection/{community-id}/feed Adding a file or a set of files to a community folder.
POST

/files/{auth}/api/library/{library-id}/document/{document-id-or-label}/feed

/files/{auth}/api/userlibrary/{user-id}/document/{document-id-or-label}/feed

/files/{auth}/api/myuserlibrary/document/{document-id-or-label}/feed

/files/{auth}/api/document/{document-id-or-label/feed

Adding a file to a folder or multiple folders.
POST

/files/{auth}/api/myuserlibrary/document/{document-id}/feed

/files/{auth}/api/library/{library-id}/document/{document-id}/feed

/files/{auth}/api/userlibrary/{user-id}/document/{document-id}/feed

/files/{auth}/api/document/{document-id}/feed

Sharing a file with a community or communities.
GET /files/{auth}/api/myuserlibrary/document/{document-id}/media Downloading a file.
GET /files/{auth}/api/library/{library-id}/document/{document-id-or-label}/media/{filename} Downloading a file.
GET

/files/{auth}/api/myuserlibrary/document/{document-id}/entry

Retrieving file metadata.
DELETE

/files/{auth}/api/myuserlibrary/document/{document-id}/entry

Deleting a file and its metadata.
POST /files/{auth}/api/collection/{collection-id}/feed Move a file to the specified folder.
POST /files/{auth}/api/communitycollection/{community-id}/feed Move the file to the specified community folder.
POST /files/{auth}/api/myfilesync/feed Move the file to the root of the user's My File Sync.
DELETE

/files/{auth}/api/collection/{collection-id}/feed

Removing a file from a folder.
GET

/files/{auth}/api/myuserlibrary/document/{document-id}/entry

/files/{auth}/api/library/{library-id}/document/{document-idOrLabel}/entry

/files/{auth}/api/library/{library-id}/draft/{draft-id}/entry

Updating a file.
PUT

/files/{auth}/api/myuserlibrary/document/{document-id}/entry

Updating file metadata
PUT

/files/{auth}/api/myuserlibrary/document/{document-id}/entry

Updating file metadata using a multipart.
PUT /files/{auth}/api/{library}/{library-id}/{document-id}/feed Recommending a File.
POST /files/{auth}/api/{library}/{library-id}/document/{document-id}/recommendation/{person-id}/entry Removing a File Recommendation.