---
title: "Finish an upload: the file appears only if size and SHA-256 match."
method: POST
path: "/v1/sandboxes/{id}/uploads/{uploadId}:commit"
tags: ["files"]
---

# Finish an upload: the file appears only if size and SHA-256 match.

`POST /v1/sandboxes/{id}/uploads/{uploadId}:commit`

## Request

- Base URL: `https://api.withruntime.com`
- URL: `https://api.withruntime.com/v1/sandboxes/{id}/uploads/{uploadId}:commit`
- Auth: HTTP bearer

## Path parameters

- `id` string, required: Resource identifier (UUID).
- `uploadId` string, required: The uploadId begin returned.

## Headers

- `Idempotency-Key` string

## Response `200`

Success

- union
  - object
    - `size` integer, required
    - `sha256` string, required
    - `replayed` boolean
  - object
    - `aborted` true, required

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/withruntime/apis/runtime-cloud-api.md) · [All operations](https://skmtc.dev/withruntime/apis/runtime-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/withruntime/apis/runtime-cloud-api/revisions/6f4012286988?raw)
