GitLab API icon

GitLab API

Gitlab

Actions1062

Merge_requests → putApiV4ProjectsIdMergeRequestsMergeRequestIidRebase

AI-generated

Summary

Perform a rebase of a specific merge request within a GitLab project by sending a PUT request to the GitLab API's rebase endpoint.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project containing the merge request.
  • merge_request_iid (required) — The internal ID of the merge request to be rebased.
  • putApiV4ProjectsIdMergeRequestsMergeRequestIidRebase (required) — The request body schema for the rebase operation (details defined by the API).
  • skipAuthentication — Set to true to skip authentication for the request (default is false).
  • baseUrl — The base URL of the GitLab instance; defaults to 'https://gitlab.com'.

Output shape

a single response object from the GitLab API indicating the result of the rebase operation

The operation returns the API response from the PUT request to the /projects/{id}/merge_requests/{merge_request_iid}/rebase endpoint. The exact shape depends on GitLab's API response. Authentication is handled by default via saved credentials unless 'Skip Authentication' is set to true.

Examples

Example 1: Rebase merge request #42 in project with ID 'my-group/my-project'

Set 'id' to 'my-group/my-project', 'merge_request_iid' to 42, and provide the required request body content as per API specification.

Links

Discussion