---
title: "Complete an upload"
method: POST
path: "/projects/{projectId}/uploads/{uploadId}/complete"
tags: ["Uploads"]
---

# Complete an upload

`POST /projects/{projectId}/uploads/{uploadId}/complete`

## Request

- Base URL: `https://api.rendley.com/v1`
- URL: `https://api.rendley.com/v1/projects/{projectId}/uploads/{uploadId}/complete`
- Auth: API key in header `Authorization`

Mark a single upload as completed by its ID once the bytes have been PUT to the presigned URL. Returns the completed upload, including the media_id to use as the `media` reference of AI actions.

## Path parameters

- `projectId` string, required
- `uploadId` string, required

## Response `200`

OK

- object
  - `data` object: Success data
    - `duration` number
    - `error` string: Error says why a failed upload failed.
    - `file_hash` string
    - `media_id` string: MediaID is the upload's storage_key — the library media id the client should reuse when injecting a pending upload, so ids stay stable across backend and editor.
    - `mime_type` string
    - `original_file_name` string
    - `role` string
    - `status` string
    - `storage_url` string
  - `error` HttpResponseAPIError
    - `code` string
    - `fields` HttpResponseFieldError[]
      - `field` string
      - `message` string
    - `message` string
  - `meta` unknown

## Other responses

- `401`: Unauthorized
- `404`: Not Found

---

[API](https://skmtc.dev/rendley/apis/rendley-api.md) - [All operations](https://skmtc.dev/rendley/apis/rendley-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rendley/apis/rendley-api/revisions/7eb8713bbf78?raw)
