Skip to content
Console
On this page

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

FieldTypeWhat it is
namestringCanonical destination Session resource name. Required.
workspace_diffstructgit_unified_diff_v1 descriptor. bucket_file_key must be transfer/<sha256>.patch. Required.
patchbytesExact nonempty patch bytes, base64 on HTTP, at most 64 KiB. Required. Never returned again.

Response

The call answers with an empty object.

Errors

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":{}}'