GitLab API

GitlabTool

Actions1095

Project_import_github → postApiV4ImportGithubCancel

AI-generated

Summary

Sends a request to cancel a GitHub project import through GitLab’s API. The operation uses POST on /api/v4/import/github/cancel; configure GitLab credentials unless authentication is skipped, and set the instance base URL when needed.

Inputs

  • skipAuthentication — Defaults to false. When true, skips GitLab API authentication.
  • authentication — Uses the GitLab API credential when authentication is enabled; this is a hidden field.
  • baseUrl — GitLab instance URL, defaulting to https://gitlab.com. The source says the actual base URL is defined in the GitLab API credential.
  • method — HTTP method selector, defaulting to GET in the UI. For this cancel operation, use POST as required by the endpoint.

Output shape

A single API response item.

The operation declares a required request body schema, but the supplied properties do not expose its fields. The exact response shape is not shown in the supplied source.

Links

Discussion