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.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
orgId*string
id*string
Query Parameters
repo?string
Length
1 <= length <= 256Response Body
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}