Newer Version Available

This content describes an older version of this product. View Latest

Files Connect Repository Resources

A files connect repository is an external content repository that’s connected to Salesforce. Use these resources to get a list of repositories, to get information about a repository or a repository file, and to get the content of a repository file. Also use these resources to get information about the files and folders in a repository folder.

Available resources:

Resource Description
/connect/content-hub/repositories Get a list of files connect repositories.
/connect/content-hub/repositories/repositoryId Get information about a files connect repository.
/connect/content-hub/repositories/repositoryId​/files/repositoryFileId Get information about a files connect repository file.
/connect/content-hub/repositories/repositoryId​/files/repositoryFileId/content Get the content of the repository file from the external system. The content is streamed as the body of the response.
/connect/content-hub/repositories/repositoryId​/folders/repositoryFolderId/items Get information about the files and folders in a repository folder.

Use these files resources to work with references to repository files:

Resource Description
/chatter/files/fileId Get information about or update the version of an existing reference.
/chatter/files/fileId/content Get the content of the reference. The content is streamed as the body of the response.
/chatter/users/me/files/ Create a reference.