GitLab API

GitlabTool

Actions1095

Projects → postApiV4ProjectsIdJobsJobIdPlay

AI-generated

Summary

Trigger a specific job in a GitLab project pipeline by sending a POST request to the job's play endpoint.

Inputs

  • id (required) — The ID of the GitLab project containing the job.
  • job_id (required) — The ID of the job within the project to be played (triggered).
  • skipAuthentication — Whether to skip using GitLab API authentication. Defaults to false (authentication is used).
  • baseUrl — Optional custom base URL for the GitLab instance. Defaults to https://gitlab.com.

Output shape

a JSON object representing the API response from triggering the job, typically including details about the job execution or status.

Requires the required path parameters id (project ID) and job_id (job ID). The response shape matches GitLab's API response for playing a job. Authentication is used by default unless explicitly skipped.

Examples

Example 1: Trigger job with project ID 123 and job ID 456

Set 'id' to '123' and 'job_id' to '456', leave other inputs default to play the job.

Links

Discussion