Cancel a GitHub project import
POST
/api/v4/import/github/cancel
Cancels an in-progress import of a GitHub project to GitLab.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
project_id
required
ID of importing project to be canceled
integer
Examplegenerated
{ "project_id": 1}Responses
Section titled “Responses”OK
Media typeapplication/json
object
id
integer
name
string
full_path
string
full_name
string
refs_url
string
forked
boolean
import_source
string
import_status
string
human_import_status_name
string
provider_link
string
import_error
string
import_warning
string
relation_type
string
Example
{ "id": 1, "name": "GitLab", "full_path": "gitlab-org/gitlab", "full_name": "GitLab Org / GitLab", "forked": true, "import_source": "source/source-repo", "import_status": "scheduled", "human_import_status_name": "canceled", "provider_link": "/source/source-repo"}Bad request
Unauthorized
Forbidden
Not found
Service unavailable