v1
latestOpenAPI 3.0.32026-07-22115106141.4 KBRepository Manipulation
Import a Git repo into this Diversion repo
Import a Git repo with all history from a Git URL. repo_id must have no commits and no branches, or be already marked as synced with the same git_url. The git repo URL must have http credentials embedded or otherwise hosted on Github and the owner has the Diversion Github app integration set up.
post/repos/{repo_id}/import
Request body
Response
Import started asynchronously. Poll the repo until it shows a default branch.