Unstage workspace paths
Remove the named paths from the index of the owning daemon’s checkout, or of an authorized isolated session worktree when sessionId is given. Requires edit access to the agent. Answers with the FRESH git status. The working tree is never touched, so nothing the agent wrote is lost; an empty list, a path that is not staged and a from-scratch workspace (isRepo:false) are all data. 409 when the agent is busy in its workspace, 503 when unplaced or the daemon is offline. Pass repo (owner/repo) to address one of the agent’s authorized additional repositories instead of its primary workspace; an unauthorized name reads 404, and a daemon too old to scope by repository yields 409.
授权
bearerAuth 位置: header
路径参数
查询参数
1 <= length <= 2561 <= length请求主体
application/json
TypeScript 定义
在 TypeScript 中使用 request body 类型。
响应主体
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/orgs/string/agents/string/workspace/gitunstage" \ -H "Content-Type: application/json" \ -d '{ "paths": [ "string" ] }'{ "isRepo": true, "clean": true, "repo": "string", "agentDir": "string", "branch": "string", "tracking": "string", "ahead": 0, "behind": 0, "files": [ { "path": "string", "index": "string", "workingDir": "string", "additions": 0, "deletions": 0 } ], "truncated": true, "lastCommit": { "sha": "string", "shortSha": "string", "subject": "string", "committedAt": "string" }, "lastFetchAt": "string"}