GitLab API icon

GitLab API

Gitlab

Actions1062

Merge_requests → postApiV4ProjectsIdMergeRequestsMergeRequestIidPipelines

AI-generated

Summary

Trigger a pipeline for a specific merge request in a GitLab project by sending a POST request to the merge request's pipelines endpoint.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project.
  • merge_request_iid (required) — The internal ID (IID) of the merge request within the project.
  • postApiV4ProjectsIdMergeRequestsMergeRequestIidPipelines (required) — The JSON body content that defines parameters for creating the pipeline on the merge request.
  • baseUrl — Optional base URL for the GitLab instance, defaults to 'https://gitlab.com'.
  • skipAuthentication — If true, bypasses authentication for this request.

Output shape

the JSON response representing the newly created pipeline object for the specified merge request.

Returns the created pipeline object as returned by the GitLab API. Requires providing valid project ID, merge request IID, and appropriate request body. Authentication is enabled by default unless skipped.

Examples

Example 1: Create a pipeline for a merge request

Set project ID and merge request IID path parameters, populate the request body with pipeline creation parameters, and execute to receive pipeline details.

Links

Discussion