Get a list of files. Valid for Communifire version 5.2 and above.
GET https://myintranet.communifire.com/api/files?FileDirectoryID=362&Status=1&SortColumn=1&SortType=0&StartPage=1&PageLength=100
Content JSON object is returned as ResponseData. Note that some properties are removed from this sample to make it shorter.
{ "IsError":false, "ResponseMessage":"", "ResponseData": [ { "ContentID":2349, "EntityType":14, "ContentTypeID":14, "ContentTitle":"windows.png", "ContentStub":"windows-png", "ContentBody":"", "ContentBodyUnprocessed":"", "ContentSummary":"", "AuthorID":1, "AuthorUserName":"john", "UpdatedByUserID":1, "UpdatedByUserDisplayName":"John Smith", "UpdatedByUserUsername":"john", "UpdatedByUserEmail":"acme565@acme.com", "UpdatedByUserFirstName":"John", "UpdatedByUserLastName":"Smith", "UpdatedByUserAvatarImageUrl":"https://myintranet.communifire.com/Assets/Uploaded-Photos/884af119-4937-4b33-a795-826cda3d19a3.png", "UpdatedByUserProfileUrl":"https://myintranet.communifire.com//people/john", "ParentContentID":362, "ContentVersionID":1, "SpaceID":0, "WorkflowID":0, "CurrentWorkflowStepID":0, "StatusID":1, "DateCreated":"2016-02-09T09:32:14.29", "DatePublished":"2016-02-09T09:32:14.293", "DateUpdated":"2016-02-09T09:32:14.29", "IsFeatured":false, "ViewCount":0, "CommentCount":0, "Rating":0.0, "MetaTitle":"windows.png", "MetaDescription":"", "MetaKeywords":"", "ContentMediaServerID":3, "ContentMediaFileName":"0172f146-a1a1-4110-afa5-e1a6dcf61ee6.png", "ContentMediaServerRootURL":"https://myintranet.communifire.com/Assets/Uploaded-CMS-Files", "AuthorDisplayName":"John Smith", "AuthorEmail":"acme@acme.com", "AuthorFirstName":"John", "AuthorLastName":"Smith", "AuthorAvatarImageUrl":"https://myintranet.communifire.com/Assets/Uploaded-Photos/884af119-4937-4b33-a795-826cda3d19a3.png", "AuthorProfileUrl":"https://myintranet.communifire.com//people/john", "IsLatest":false, "DateCreatedString":"20 minutes ago", "DatePublishedString":"20 minutes ago", "DateUpdatedString":"20 minutes ago", "ContentURL":"/files/2349/windows-png", "ContentVersionURL":"", "ParentContentTitle":"Logos", "ParentContentURL":"/files?directoryid=362", "ContentFileSize":1075.0, "ContentFileSizeString":"1KB", "IsEditable":true, "IsDeletable":true, "IsDownloadable":true, "IsChekoutable":false, "IsUndochekoutable":false, "IsChekinable":false, "IsRestoreable":false, "IsPurgeable":false, "IsHistoryViewable":true, "IsMoveable":true, "ContentMediaOnlineViewUrl":"/files/view/2349", "ContentMediaUrl":"/fileattachment?file=Bll%2FQDhKrdFuntbrlVyy4w%3D%3D&v=1", }, { "ContentID":2350, "EntityType":14, "ContentTypeID":14, "ContentTitle":"gates.png", "ContentStub":"gates-png", "ContentBody":"", "ContentBodyUnprocessed":"", "ContentSummary":"", "AuthorID":1, "AuthorUserName":"john", "UpdatedByUserID":1, "UpdatedByUserDisplayName":"John Smith", "UpdatedByUserUsername":"john", "UpdatedByUserEmail":"acme565@acme.com", "UpdatedByUserFirstName":"John", "UpdatedByUserLastName":"Smith", "UpdatedByUserAvatarImageUrl":"https://myintranet.communifire.com/Assets/Uploaded-Photos/884af119-4937-4b33-a795-826cda3d19a3.png", "UpdatedByUserProfileUrl":"https://myintranet.communifire.com//people/john", "ParentContentID":362, "ContentVersionID":1, "SpaceID":0, "WorkflowID":0, "CurrentWorkflowStepID":0, "StatusID":1, "DateCreated":"2016-02-09T09:32:17.363", "DatePublished":"2016-02-09T09:32:17.367", "DateUpdated":"2016-02-09T09:32:17.363", "IsFeatured":false, "ViewCount":0, "CommentCount":0, "Rating":0.0, "MetaTitle":"caution.png", "MetaDescription":"", "MetaKeywords":"", "ContentMediaServerID":3, "ContentMediaFileName":"9524436b-ede6-4596-b2e3-f5e5d139e071.png", "ContentMediaServerRootURL":"https://myintranet.communifire.com/Assets/Uploaded-CMS-Files", "AuthorDisplayName":"John Smith", "AuthorEmail":"acme@acme.com", "AuthorFirstName":"John", "AuthorLastName":"Smith", "AuthorAvatarImageUrl":"https://myintranet.communifire/Assets/Uploaded-Photos/884af119-4937-4b33-a795-826cda3d19a3.png", "AuthorProfileUrl":"https://myintranet.communifire.com//people/john", "IsLatest":false, "DateCreatedString":"20 minutes ago", "DatePublishedString":"20 minutes ago", "DateUpdatedString":"20 minutes ago", "ContentURL":"/files/2350/gates-png", "ContentVersionURL":"", "IsPublishedFromDraftMode":false, "IsPublishedFromDelayedPublishingMode":false, "ParentContentTitle":"Nostrum consequatur laboriosam velit saepe voluptatibus officiis labore eius.", "ParentContentURL":"/files?directoryid=362", "IsPublishedFromUnderProcessingMode":false, "IsWallContent":false, "ContentFileSize":1075.0, "ContentFileSizeString":"1KB", "IsEditable":true, "IsDeletable":true, "IsDownloadable":true, "IsChekoutable":false, "IsUndochekoutable":false, "IsChekinable":false, "IsRestoreable":false, "IsPurgeable":false, "IsHistoryViewable":true, "IsMoveable":true, "ContentMediaOnlineViewUrl":"/files/view/2350", "ContentMediaUrl":"/fileattachment?file=1Tu76lyuaT6No5jHjZuO2A%3D%3D&v=1" } ] }
Please Note The content type that you pass in the header of your request should be 'application/json'.
is requesting access to a wiki that you have locked: https://my.axerosolutions.com/spaces/5/communifire-documentation/wiki/view/4908/rest-api-get-files?locale=en-US%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252f1%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252f%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fact%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253d1%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252f%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fSpaceID%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253d5
Your session has expired. You are being logged out.