cURL
curl --request GET \ --url https://api.example.com/api/git/diff/{path} \ --header 'X-Session-API-Key: <api-key>'
{ "modified": "<string>", "original": "<string>" }
Get git diff using path parameter (legacy, for backwards compatibility).
Deprecated since v1.15.0 and scheduled for removal in v1.20.0.
Prefer /git/diff?path=... to avoid path-encoding issues and align with other Git endpoints.
/git/diff?path=...
Successful Response
Was this page helpful?