Assets
The org media library: uploads, serving and lifecycle
Register an image you are about to upload and get a presigned upload URL
For a member of the organization. Member uploads are images only (409 otherwise). The asset is yours: only you can finalize it or attach it to your profile, a post or a message. You can delete it while nothing references it.
Confirm an upload you started
Uploader only; anyone else gets 404. Reads the stored size and content type. A file that is not an image or is over the size limit is discarded and answered with 409. A finalized file moves where the upload URL no longer reaches; finalizing it again returns it unchanged.
Delete an upload of yours that nothing references
Uploader only; anyone else gets 404. 409 while a profile, post or message still uses it.
Register a library asset and get a presigned upload URL (staff)
Staff only (owner, admin, instructor). The asset stays pending until you upload the file and confirm it.
Confirm a library upload completed (staff)
Staff only (owner, admin, instructor). Captures the stored size and content type: a pending library upload becomes ready; a ready one is returned unchanged. A member upload is finalized only by its uploader and is answered with 403.
Browse the organization's media library (staff)
Staff only (owner, admin, instructor). Library files by default; `source: member` lists members' uploads.
Get an asset's metadata (staff)
Staff only (owner, admin, instructor).
Delete an asset nothing references (staff)
Staff only (owner, admin, instructor). Removes the row and the stored file. 409 while content still uses it.
Redirect to a library file to show it (staff)
Staff only (owner, admin, instructor). Ready library files of the organization; member uploads and pending files answer 404.
Redirect to a library file saved under its filename (staff)
Staff only (owner, admin, instructor). Ready library files of the organization; member uploads and pending files answer 404.
Reply to a course comment from the moderation queue (staff) POST
POST /api/comments/{commentId}/replies. Reply to a course comment from the moderation queue (staff). Headless LMS Discussion API reference.
Register an image you are about to upload and get a presigned upload URL POST
POST /api/member/uploads. Register an image you are about to upload and get a presigned upload URL. Headless LMS Assets API reference.