Import a project by cloning its git remote
POST/api/import_project_remote
Imports a project by cloning it from its cloud remote, history and all. The clone becomes this grid's hub for that project, already linked to the remote it came from - so it can be pushed and pulled straight away, by whoever has an SSH key for it.
Unlike a zip import, guids are never regenerated here: this is the same project as the one on the remote, and it has to stay addressable as such for pushes back to it to mean anything. A project already on this grid is therefore a conflict rather than something to import a second copy of.
Request
Responses
- 200
- 400
- 409
- 422
Successful Response
Missing/invalid SSH URL, no SSH key configured for the current user, or the repository could not be cloned or isn't a Linkiir project
That project (or one of its workflows) already exists on this grid
Validation Error