---
title: "Compare two managed source versions"
method: GET
path: "/v1/projects/{project_id}/source/diff"
---

# Compare two managed source versions

`GET /v1/projects/{project_id}/source/diff`

## Request

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

## Path parameters

- `project_id` string, required

## Query parameters

- `from_commit_sha` string, required
- `to_commit_sha` string, required

## Headers

- `X-Request-Id` string

## Response `200`

The tenant-scoped managed source result.

- ManagedSourceDiff
  - `from_commit_sha` string, required
  - `to_commit_sha` string, required
  - `changes` object[], required
    - `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.
    - `change` 'added' | 'modified' | 'deleted', required
    - `before_sha256` string, nullable, required
    - `after_sha256` string, nullable, required
    - `before_executable` boolean, nullable, required
    - `after_executable` boolean, nullable, 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)
