Skip to main content
GET
/
projects
/
{projectId}
/
git
/
diffs
/
{diffBaseId}
/
{diffTargetId}
cURL
curl --request GET \
  --url {schemes}://api.upsun.com/projects/{projectId}/git/diffs/{diffBaseId}/{diffTargetId} \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "<string>",
    "diff": "<string>",
    "new_path": "<string>",
    "new_id": "<string>",
    "old_path": "<string>",
    "old_id": "<string>"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

projectId
string
required
diffBaseId
string
required
diffTargetId
string
required

Response

default - application/json
id
string
required

The identifier of Diff

diff
string
required

The unified diff between two trees

new_path
string | null
required

The new path of the file in the diff

new_id
string | null
required

The new object ID of the file in the diff

old_path
string | null
required

The old path of the file in the diff

old_id
string | null
required

The old object ID of the file in the diff

Last modified on March 25, 2026