Skip to content

Documents API

Document library upload, listing, update, delete, and download-related portal endpoints.

PRO

Authentication

Document routes are portal routes and rely on PortalPolicy plus per-document access checks in the Pro module.

Endpoints

MethodPathEditionOperationWhat it does
GET/documentsPROList DocumentsReturns the paginated document posts of one space, newest first, each with its author and topics attached.
POST/documents/uploadPROUpload DocumentUploads a document file into a space document library, or — when `lesson_id` is given — attaches it directly to a course lesson.
POST/documents/updatePROUpdate DocumentRenames a document, updating both the media record and the entry in the parent post or lesson document list.
POST/documents/deletePRODelete DocumentDetaches a document from its post or lesson and hands the media record to the media cleanup hook.

FluentCommunity developer documentation