GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → postApiV4ProjectsIdJobsJobIdCancel

AI-generated

Summary

Cancel a specific job in a given GitLab project by providing the project ID and job ID.

Inputs

  • Id (required) — The unique identifier of the GitLab project containing the job to cancel.
  • Job_id (required) — The unique identifier of the job within the project to cancel.
  • Skip Authentication — Optional flag to bypass authentication if set to true.
  • baseUrl — Optional custom base URL for the GitLab instance, defaults to 'https://gitlab.com'.

Output shape

a JSON object representing the cancelled job's details or status

The response contains the details of the cancelled job; standard error responses apply if the job or project ID is invalid or inaccessible.

Examples

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

Set 'Id' to '1234', 'Job_id' to '88', method to POST, and execute the operation to cancel the job.

Links

Discussion