headless lms

Confirm a library upload completed (staff)

POST /api/assets/{id}/confirm. Confirm a library upload completed (staff). Headless LMS Assets API reference.

POST
/api/assets/{id}/confirm

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

id*string

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"}