Skip to content

Cancel a GitHub project import

POST
/api/v4/import/github/cancel

Cancels an in-progress import of a GitHub project to GitLab.

Media type application/json
object
project_id
required

ID of importing project to be canceled

integer
nullable
Example generated
{
"project_id": 1
}

OK

Media type application/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