Skip to content

Complete a resumable media upload

PubNio API media.completeUpload: complete a resumable media upload. Request fields, examples in five clients, errors, and idempotency.

Complete a resumable media upload with POST /api/v1/media/uploads/{mediaId}/complete. Requires an API key with the read scope or a signed-in workspace member.

Request

Parameter In Type Required
mediaId path UUID Yes
workspaceId query UUID Yes

Response

  • HTTP 200: MediaIntake with mediaId, status, asset, issue, upload, idempotencyKey, retryAfterSeconds.
    • status: awaiting_upload, processing, ready, failed

The OpenAPI document has each field’s type.

Examples

const asset = await workspace.media.upload(file);

The SDK’s media.upload() runs this step itself for a file too large for one request.

intake = workspace.media.complete_upload(media_id)
curl -X POST "https://pubnio.com/api/v1/media/uploads/$MEDIA_ID/complete?workspaceId=$WORKSPACE_ID" \
  -H "Authorization: Bearer $PUBNIO_API_KEY"
pnio media upload ./launch.mp4

Hosted MCP’s execute tool cannot carry this operation’s binary body or response.

Errors

It also declares the problems most operations declare.

Idempotency

No key, so a retried POST is not deduplicated. Read the current state before you retry.

Limits

  • It is one step of a resumable upload. Agents usually call media.upload, media.import, or media.uploadInline instead.

Type to search…

↑↓ navigate↵ selectEsc close