GitLab API

GitlabTool

Actions1095

Merge_requests → putApiV4ProjectsIdMergeRequestsMergeRequestIid

AI-generated

Summary

Update a specific merge request in a given GitLab project via the GitLab API.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project containing the merge request to update.
  • merge_request_iid (required) — The internal ID (IID) of the merge request within the project to update.
  • putApiV4ProjectsIdMergeRequestsMergeRequestIid (required) — The request body containing fields to update on the merge request, as specified by the GitLab API's PUT /projects/{id}/merge_requests/{merge_request_iid} endpoint.

Output shape

a single record representing the updated merge request object.

The operation sends a PUT request to the GitLab API's /api/v4/projects/{id}/merge_requests/{merge_request_iid} endpoint and returns the updated merge request data. Authentication must be provided unless 'Skip Authentication' is enabled.

Examples

Example 1: Update the title and description of a merge request in a GitLab project by specifying the project ID, merge request IID, and providing updated fields in the request body.

Set 'id' to the project ID, 'merge_request_iid' to the merge request internal ID, and provide the request body with the fields to update.

Links

Discussion