GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → postApiV4ProjectsIdMergeRequestsMergeRequestIidApprove

AI-generated

Summary

Approve a specific merge request of a GitLab project by sending a POST request to the GitLab API endpoint for merge request approval.

Inputs

  • id (required) — The project ID or URL-encoded path of the project containing the merge request to approve.
  • merge_request_iid (required) — The internal ID of the merge request within the project to approve.
  • postApiV4ProjectsIdMergeRequestsMergeRequestIidApprove (required) — The request body object specifying approval parameters as defined by the GitLab API, such as optional parameters controlling the approval behavior.
  • baseUrl — The base URL for the GitLab instance API, defaults to https://gitlab.com if not specified.
  • skipAuthentication — If true, skips using the configured GitLab API credentials for this request.

Output shape

the response object from the GitLab API representing the updated merge request approval status

The API response includes details about the merge request approval. The operation requires mandatory path parameters 'id' and 'merge_request_iid' and a required request body object with approval details. Authentication via the configured credentials is used by default unless skipped by 'skipAuthentication'.

Links

Discussion