---
title: "Reserve an owner-bound source upload. Prefix the uploaded bytes with the returned proof before saving"
method: POST
path: "/environments/uploads"
tags: ["environments"]
---

# Reserve an owner-bound source upload. Prefix the uploaded bytes with the returned proof before saving

`POST /environments/uploads`

## Request

- Base URL: `https://www.dench.com/api/v1`
- URL: `https://www.dench.com/api/v1/environments/uploads`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Reserve an owner-bound source upload. Prefix the uploaded bytes with the returned proof before saving.

## Request body

- object
  - `kind` 'source', required
  - `size` integer, required
  - `sha256` string, required

## Response `200`

Successful response

- unknown

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid authentication
- `404`: Operation or resource not found
- `500`: Server error

---

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