Upload workspace diff on an agent session
Uploads a digest-verified patch to the pinned workspace bucket.
Uploads a digest-verified patch to the pinned workspace bucket.
- Path
POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/agent_sessions/agent-session:uploadWorkspaceDiff - Scope
agents:sessions - Effect
write— a successful call changes state. - Collection agent_sessions
Request
| Field | Type | What it is |
|---|---|---|
name | string | Canonical destination Session resource name. Required. |
workspace_diff | struct | git_unified_diff_v1 descriptor. bucket_file_key must be transfer/<sha256>.patch. Required. |
patch | bytes | Exact nonempty patch bytes, base64 on HTTP, at most 64 KiB. Required. Never returned again. |
Response
The call answers with an empty object.
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 -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/agent_sessions/agent-session:uploadWorkspaceDiff" \
-H "Authorization: Bearer $SYLPHX_API_KEY" \
-H "Content-Type: application/json" \
-d '{"patch":"…","workspace_diff":{}}'