{ "opencollection": "1.0.0", "info": { "name": "One-Shot access snapshots API", "version": "1.0.0" }, "items": [ { "info": { "name": "snapshots", "type": "folder" }, "items": [ { "info": { "name": "Create Snapshot", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/agent-loop/workspaces/:workspace_id/snapshots", "params": [ { "name": "workspace_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Create Snapshot" }, { "info": { "name": "Commit Snapshot", "type": "http" }, "http": { "method": "PATCH", "url": "{{baseUrl}}/agent-loop/workspaces/:workspace_id/snapshots/:snapshot_id/commit", "params": [ { "name": "workspace_id", "value": "", "type": "path" }, { "name": "snapshot_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Commit Snapshot" }, { "info": { "name": "Discard Snapshot", "type": "http" }, "http": { "method": "PATCH", "url": "{{baseUrl}}/agent-loop/workspaces/:workspace_id/snapshots/:snapshot_id/discard", "params": [ { "name": "workspace_id", "value": "", "type": "path" }, { "name": "snapshot_id", "value": "", "type": "path" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Discard Snapshot" }, { "info": { "name": "Set Snapshot Has User Edits", "type": "http" }, "http": { "method": "PATCH", "url": "{{baseUrl}}/agent-loop/workspaces/:workspace_id/snapshots/:snapshot_id/has-user-edits", "params": [ { "name": "workspace_id", "value": "", "type": "path" }, { "name": "snapshot_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Set the has_user_edits flag (trunk-draft reset clears it to the empty visual state)." }, { "info": { "name": "Accept Snapshot Suggestion", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/agent-loop/workspaces/:workspace_id/snapshots/:snapshot_id/suggestion/accept", "params": [ { "name": "workspace_id", "value": "", "type": "path" }, { "name": "snapshot_id", "value": "", "type": "path" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Accept Snapshot Suggestion" }, { "info": { "name": "Reject Snapshot Suggestion", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/agent-loop/workspaces/:workspace_id/snapshots/:snapshot_id/suggestion/reject", "params": [ { "name": "workspace_id", "value": "", "type": "path" }, { "name": "snapshot_id", "value": "", "type": "path" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Reject Snapshot Suggestion" }, { "info": { "name": "Rename Snapshot", "type": "http" }, "http": { "method": "PATCH", "url": "{{baseUrl}}/agent-loop/workspaces/:workspace_id/snapshots/:snapshot_id/rename", "params": [ { "name": "workspace_id", "value": "", "type": "path" }, { "name": "snapshot_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Rename Snapshot" } ] } ], "bundled": true }