Confirm a library upload completed (staff)
POST /api/assets/{id}/confirm. Confirm a library upload completed (staff). Headless LMS Assets API reference.
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.
Path Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/assets/string/confirm"{ "orgId": "string", "id": "string", "kind": "image", "source": "library", "filename": "string", "contentType": "string", "size": 0, "status": "pending", "uploadedBy": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "url": "string", "downloadUrl": "string"}{ "error": "string", "message": "string", "requestId": "string", "issues": [ { "path": "string", "message": "string" } ]}{ "error": "string", "message": "string", "requestId": "string"}{ "error": "string", "message": "string", "requestId": "string"}{ "error": "string", "message": "string", "requestId": "string"}{ "error": "string", "message": "string", "requestId": "string"}Register a library asset and get a presigned upload URL (staff) POST
POST /api/uploads. Register a library asset and get a presigned upload URL (staff). Headless LMS Assets API reference.
Browse the organization's media library (staff) GET
GET /api/assets. Browse the organization's media library (staff). Headless LMS Assets API reference.