# Finish a media upload

> Mark an upload finished after the bytes were PUT to the upload URL. Multipart uploads pass their parts.

`media.complete_upload` · write

- **MCP tool:** `media_complete_upload`. Catalog: reach it with `find_actions` and `run_write_action`, or turn on the full toolset.
- **REST:** `POST /v1/media/complete-upload`
- **CLI:** `xholic media complete-upload`
- **Scope:** `write`
- **Plan:** Every plan, including the trial
- **Cost:** Free.
- **Rate limit bucket:** `write`

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `mediaId` | string ≤ 200 chars | Yes |  |
| `parts` | array of object (max 10000) | No |  |
| `account` | string ≤ 64 chars | No | X account to act on, as @handle. Leave it out to use the connection's default account. |
| `dryRun` | boolean | No | Return exactly what would happen without doing it. |
| `idempotencyKey` | string ≤ 200 chars | No | A unique key for this write. Repeating a call with the same key returns the first result instead of acting twice. |
