Skip to main content
Detach a repository from its configured upstream (for example, GitHub sync). 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

StatusDescription
401 UnauthorizedInvalid JWT or missing authorization header
403 ForbiddenMissing git:write scope
404 Not FoundRepository not found
409 ConflictDetach already in progress or sync workflow missing
504 Gateway TimeoutDetach request timed out