curl --request POST \
--url https://staging.api.soludesks.com/v1/external/learnhub/uploads/{id}/complete \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'{
"status": 123,
"success": true,
"code": "<string>",
"message": "<string>",
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"upload_type": "VIDEO",
"file_name": "<string>",
"content_type": "<string>",
"file_size": 123,
"status": "INITIATED",
"part_size": 123,
"total_parts": 123,
"is_multipart": "<string>",
"multipart_upload_id": "<string>",
"expires_datetime": "2023-11-07T05:31:56Z",
"completed_datetime": "2023-11-07T05:31:56Z",
"created_datetime": "2023-11-07T05:31:56Z",
"updated_datetime": "2023-11-07T05:31:56Z",
"asset_url": "<string>",
"asset_url_expires_in": "<string>"
},
"errors": [
{}
]
}{
"status": 400,
"success": false,
"code": "REQUEST_FAILED",
"message": "Bad request.",
"data": null,
"errors": []
}{
"status": 401,
"success": false,
"code": "REQUEST_FAILED",
"message": "Missing or invalid API key.",
"data": null,
"errors": []
}{
"status": 403,
"success": false,
"code": "REQUEST_FAILED",
"message": "Permission denied, inactive service provider, or unsupported key mode.",
"data": null,
"errors": []
}{
"status": 404,
"success": false,
"code": "REQUEST_FAILED",
"message": "Resource not found.",
"data": null,
"errors": []
}{
"status": 409,
"success": false,
"code": "REQUEST_FAILED",
"message": "Idempotency conflict or request already in progress.",
"data": null,
"errors": []
}{
"status": 422,
"success": false,
"code": "REQUEST_FAILED",
"message": "Validation failed.",
"data": null,
"errors": []
}{
"status": 429,
"success": false,
"code": "REQUEST_FAILED",
"message": "Rate limit exceeded.",
"data": null,
"errors": []
}{
"status": 500,
"success": false,
"code": "REQUEST_FAILED",
"message": "Internal server error.",
"data": null,
"errors": []
}Uploads
Complete Upload
Complete upload through SoluDesks APIs.
Tenant API keys operate inside the tenant LearnHub workspace. Service-provider API keys use the same endpoint family for service-provider-owned admin training content where supported. Upload sessions return presigned storage URLs; upload the file to the returned URL and complete the session before referencing the upload ID in course or lesson payloads.
POST
/
v1
/
external
/
learnhub
/
uploads
/
{id}
/
complete
curl --request POST \
--url https://staging.api.soludesks.com/v1/external/learnhub/uploads/{id}/complete \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'{
"status": 123,
"success": true,
"code": "<string>",
"message": "<string>",
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"upload_type": "VIDEO",
"file_name": "<string>",
"content_type": "<string>",
"file_size": 123,
"status": "INITIATED",
"part_size": 123,
"total_parts": 123,
"is_multipart": "<string>",
"multipart_upload_id": "<string>",
"expires_datetime": "2023-11-07T05:31:56Z",
"completed_datetime": "2023-11-07T05:31:56Z",
"created_datetime": "2023-11-07T05:31:56Z",
"updated_datetime": "2023-11-07T05:31:56Z",
"asset_url": "<string>",
"asset_url_expires_in": "<string>"
},
"errors": [
{}
]
}{
"status": 400,
"success": false,
"code": "REQUEST_FAILED",
"message": "Bad request.",
"data": null,
"errors": []
}{
"status": 401,
"success": false,
"code": "REQUEST_FAILED",
"message": "Missing or invalid API key.",
"data": null,
"errors": []
}{
"status": 403,
"success": false,
"code": "REQUEST_FAILED",
"message": "Permission denied, inactive service provider, or unsupported key mode.",
"data": null,
"errors": []
}{
"status": 404,
"success": false,
"code": "REQUEST_FAILED",
"message": "Resource not found.",
"data": null,
"errors": []
}{
"status": 409,
"success": false,
"code": "REQUEST_FAILED",
"message": "Idempotency conflict or request already in progress.",
"data": null,
"errors": []
}{
"status": 422,
"success": false,
"code": "REQUEST_FAILED",
"message": "Validation failed.",
"data": null,
"errors": []
}{
"status": 429,
"success": false,
"code": "REQUEST_FAILED",
"message": "Rate limit exceeded.",
"data": null,
"errors": []
}{
"status": 500,
"success": false,
"code": "REQUEST_FAILED",
"message": "Internal server error.",
"data": null,
"errors": []
}Authorizations
External API key. Format: Bearer <API_KEY>
Path Parameters
A UUID string identifying this upload session.
Body
application/json
Show child attributes
Show child attributes
