Skip to main content
Triggers a sync from the configured Git Sync upstream for the repository in the JWT repo claim.
POST /api/v1/repos/pull-upstream
Authorization: Bearer YOUR_JWT_TOKEN
Content-Type: application/json

JWT Requirements

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

Response

{
  "message": "Repository sync initiated successfully"
}

Notes

  • Returns 202 Accepted - sync is initiated asynchronously
  • Only works for repositories that have an upstream configured via base_repo during creation
  • See Integrations for setup details
  • The SDK provides repo.pullUpstream() for this operation

Error Responses

403 Forbidden
string
Invalid JWT or missing git:write scope
404 Not Found
string
Repository doesn’t exist
400 Bad Request
string
Repository has no upstream configured
500 Internal Server Error
string
Sync service unavailable