Agent workspace
Sync the workspace
Sync the checkout to its configured remote branch on the owning daemon: fetch, point the local branch at the remote tip and check it out, carrying uncommitted edits and never merging. A refused sync (a local commit the remote lacks, an edit it would rewrite) is data (ok:false + detail); 409 when the agent is working in the checkout, 503 only when the daemon is offline. Pass repo to sync one of the agent’s authorized additional repositories instead of its primary workspace.
授权
bearerAuth 授权Bearer <token>
位置: header
路径参数
orgId*string
id*string
查询参数
repo?string
长度
1 <= length <= 256响应主体
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/orgs/string/agents/string/workspace/gitpull"{ "isRepo": true, "ok": true, "detail": "string", "changed": 0, "insertions": 0, "deletions": 0}