GitLab API

GitlabTool

Actions1095

Projects → postApiV4ProjectsIdJobsJobIdCancel

AI-generated

Summary

Cancel a running or pending job in a specified GitLab project by providing the project ID and job ID.

Inputs

  • id (required) — The ID of the GitLab project containing the job to cancel.
  • job_id (required) — The ID of the job within the project to cancel.
  • skipAuthentication — Optionally skip authentication (default is false).
  • baseUrl — The base URL of the GitLab instance (default: https://gitlab.com).

Output shape

A single JSON object representing the canceled job's details as returned by GitLab's API.

Requires authentication unless 'Skip Authentication' is enabled. The operation performs an HTTP POST to the /api/v4/projects/{id}/jobs/{job_id}/cancel endpoint and returns the API's full job cancellation response.

Examples

Example 1: Cancel a job with ID 88 in project 1234

Set 'Id' to '1234' and 'Job_id' to '88', then execute the node to send the cancel request.

Links

Discussion