---
title: "Upload one source file with its content hash"
method: PUT
path: "/v1/projects/{project_id}/source/uploads/{operation_id}/files"
---

# Upload one source file with its content hash

`PUT /v1/projects/{project_id}/source/uploads/{operation_id}/files`

## Request

- Base URL: `https://app.ohmyho.st`
- URL: `https://app.ohmyho.st/v1/projects/{project_id}/source/uploads/{operation_id}/files`
- Auth: HTTP bearer

## Path parameters

- `project_id` string, required
- `operation_id` string, required

## Headers

- `X-Request-Id` string
- `Idempotency-Key` string, required

## Request body

- ManagedSourceBlobRequest
  - `path` string, required: Printable ASCII USTAR-compatible relative repository path without dot segments, backslashes, Git metadata or credential files. Environment secrets use the protected secret form; .env.example is allowed.
  - `content_base64` string, byte, required
  - `executable` boolean, required
  - `sha256` string, required

## Response `200`

The tenant-scoped managed source result.

- SourceManifestFile
  - `path` string, required: Printable ASCII USTAR-compatible relative repository path without dot segments, backslashes, Git metadata or credential files. Environment secrets use the protected secret form; .env.example is allowed.
  - `sha256` string, required
  - `byte_length` integer, required
  - `executable` boolean, required

## Other responses

- `400`: The request failed.
- `401`: The request failed.
- `404`: The resource does not exist or is not visible to the authenticated principal.
- `409`: The request failed.
- `413`: The request failed.
- `429`: The request failed.
- `503`: The request failed.

---

[API](https://skmtc.dev/ohmyho/apis/ohmyho-st-api.md) · [All operations](https://skmtc.dev/ohmyho/apis/ohmyho-st-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ohmyho/apis/ohmyho-st-api/revisions/d069888c0017?raw)
