Download workspace diff on an agent session
Downloads the exact patch referenced by the committed handback.
Downloads the exact patch referenced by the committed handback.
- Path
GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/agent_sessions/agent-session:downloadWorkspaceDiff - Scope
agents:sessions - Effect
read— nothing is written. - Collection agent_sessions
Request
| Field | Type | What it is |
|---|---|---|
name | string | Canonical source Session resource name. Required. |
Response
| Field | Type | What it is |
|---|---|---|
patch | bytes | Exact UTF-8 Git patch bytes, base64 on HTTP, at most 64 KiB. Never returned again. |
Errors
UNAUTHENTICATED— No valid key or token was presented.PERMISSION_DENIED— The key lacks the method's permission.RESOURCE_NOT_FOUND— The named Resource does not exist or is not visible.INVALID_FIELD— A field failed validation.INVALID_STATE— The Resource is in a state that forbids the call.
Every error arrives in the body Errors describes.
Examples
curl "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/agent_sessions/agent-session:downloadWorkspaceDiff" \
-H "Authorization: Bearer $SYLPHX_API_KEY"