suggestions

Apply multiple suggestions to a merge request

Applies multiple suggested patches in a merge request. You must have the Developer, Maintainer, or Owner role.

put/api/v4/suggestions/batch_apply

Request

  • Base URL
    https://gitlab.com
  • Auth
    none declared

Request body

idsinteger[] required

An array of the suggestion IDs

commit_messagestring

A custom commit message to use instead of the default generated message or the project's default message

Response

Apply multiple suggestions to a merge request

idinteger required
from_lineinteger required
to_lineinteger required
appliableboolean required
appliedboolean required
from_contentstring required
to_contentstring required

Example response

{
  "id": 1,
  "from_line": 1,
  "to_line": 1,
  "appliable": true,
  "from_content": "Original content\n",
  "to_content": "New content\n"
}

Changes

No recorded changes to this operation across all 5 revisions of this API.