GitLab API

GitlabTool

Actions1095

Projects → postApiV4ProjectsIdPipelinesPipelineIdCancel

AI-generated

Summary

Cancel a specific pipeline in a GitLab project by providing the project ID or URL-encoded path and the pipeline ID.

Inputs

  • Id (required) — The project ID or URL-encoded path identifying the GitLab project.
  • Pipeline_id (required) — The ID of the pipeline within the specified project to cancel.
  • Skip Authentication — Optionally skip authentication; defaults to false (authentication required).
  • baseUrl — The base URL of the GitLab instance; defaults to https://gitlab.com.

Output shape

a JSON object representing the API response to the cancel pipeline request

The operation sends a POST request to the endpoint /api/v4/projects/{id}/pipelines/{pipeline_id}/cancel. Authentication is used by default via GitLab API credentials unless skipped. The response contains the updated pipeline data as returned by GitLab's API.

Examples

Example 1: Cancel pipeline with project ID 11 and pipeline ID 18 on gitlab.com

Set Id to '11', Pipeline_id to '18', and use default baseUrl with GitLab API credentials enabled.

Links

Discussion