Diff two commits (compare)
GET
/v1/datasets/diff
const url = 'https://example.com/v1/datasets/diff?path=example&from_commit=example&to_commit=example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/v1/datasets/diff?path=example&from_commit=example&to_commit=example'Compare two commits/refs — the changed files between them and the download/removable byte deltas. Sourced from QDS.
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” path
required
Dataset path (org/name)
string
Dataset path (org/name)
from_commit
required
string
to_commit
required
string
Header Parameters
Section titled “Header Parameters ” x-api-key
string | null
Responses
Section titled “ Responses ”VersionDiff: changed files + byte deltas
Media type application/json
Example generated
exampleValidation Error
Media type application/json
HTTPValidationError
object
detail
Array<object>
ValidationErrorobject
loc
required
Location
Array<string | integer>
msg
required
Message
string
type
required
Error Type
string
input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}