Get the diff of a held change
GET
For a landing held for the owner's review (protected paths or agent configuration changed), returns every held path with its change kind, file modes and a unified diff (at most 64 KB each, null for binary files), plus the head_sha an approval must name. Reading is not approving, so an API key may call this. Returns 404 when the run did not land on its own, and 409 when the change is not waiting for review.
CustomerApiKeyheader
AuthorizationBearer <API Key>Customer API key sent as a bearer token
coding_run_id*stringFormat
uuidcustomer_id?|nullRequest fulfilled, document follows
application/json- response
expires_at*stringFormat
date-timehead_sha*stringpaths*array<>reason*stringrun_id*stringFormat
uuidcurl -X GET 'https://api.syndai.ai/api/v1/external/coding/runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/land/held-diff'Example Response
{ "expires_at": "2019-08-24T14:15:22Z", "head_sha": "string", "paths": [ { "binary": true, "change": "added", "diff": "string", "new_mode": "string", "old_mode": "string", "path": "string" } ], "reason": "string", "run_id": "dded282c-8ebd-44cf-8ba5-9a234973d1ec"}