Skip to main content
Detach a repository from its configured upstream Git Sync provider. The operation is idempotent.
DELETE /api/v1/repos/base
Authorization: Bearer YOUR_JWT_TOKEN

JWT Requirements

  • The JWT must include the repository in the repo claim
  • Requires git:write scope

Response

{
  "message": "repository detached"
}

Error Responses

401 Unauthorized
string
Invalid JWT or missing authorization header
403 Forbidden
string
Missing git:write scope
404 Not Found
string
Repository not found
409 Conflict
string
Detach already in progress or sync workflow missing
504 Gateway Timeout
string
Detach request timed out