project_import

Cancel a GitHub project import

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

post/api/v4/import/github/cancel

Request

  • Base URL
    https://gitlab.com
  • Auth
    none declared

Request body

project_idinteger required

ID of importing project to be canceled

Response

Cancel a GitHub project import

idinteger required
namestring required
full_pathstring required
full_namestring required
refs_urlstring required
forkedboolean required
import_sourcestring required
import_status'scheduled' | 'started' | 'finished' | 'failed' | 'canceled' required
human_import_status_namestring required
provider_linkstring required
import_errorstring
import_warningstring
relation_typestring required

Example response

{
  "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"
}

Changes

No recorded changes to this operation across all 5 revisions of this API.