Repositories
Import repository
Import a repository from an external Git source
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/api/v1/repos/import" \ -H "Content-Type: application/json" \ -d '{}'{
"clone_url": "string",
"created_at": "2019-08-24T14:15:22Z",
"default_branch": "string",
"description": "string",
"downstream_url": "string",
"git_path": "string",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"is_private": true,
"last_synced_at": "2019-08-24T14:15:22Z",
"mirror_direction": "string",
"mirror_enabled": true,
"name": "string",
"next_sync_at": "2019-08-24T14:15:22Z",
"owner": "string",
"owner_id": "8826ee2e-7933-4665-aef2-2393f84a0d05",
"ssh_url": "string",
"sync_interval": 0,
"sync_schedule": "string",
"sync_status": "string",
"updated_at": "2019-08-24T14:15:22Z",
"upstream_url": "string"
}Empty
Empty