Newer Version Available
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. Use these resources to get a repository’s directory entries,
permissions, and permission types. Also use these resources to update a repository’s
permissions.
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/directory-entries | Get the user and group directory entries of a repository. |
| /connect/content-hub/repositories/repositoryId/files/repositoryFileId | Get information about or update 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/allowed-item-types | Returns item types that are allowed to be created in the repository folder. |
| /connect/content-hub/repositories/repositoryId/folders/repositoryFolderId/items | Get information about the files and folders in a repository folder. Create a file in a repository folder. |
| /connect/content-hub/repositories/repositoryId/item-types | Returns information about an item type associated with a repository. |
| /connect/content-hub/repositories/repositoryId/items/repositoryItemId/permissions | Get or update the permissions of a repository file. |
| /connect/content-hub/repositories/repositoryId/items/repositoryItemId/permissions/types | Get the permission types of a repository file. |
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. |