Apply multiple suggestions to a merge request
PUT
/api/v4/suggestions/batch_apply
Applies multiple suggested patches in a merge request. You must have the Developer, Maintainer, or Owner role.
Authorizations
Section titled “ Authorizations ”Request Body required
Section titled “ Request Body required ” Media type application/json
object
ids
required
An array of the suggestion IDs
Array<integer>
commit_message
A custom commit message to use instead of the default generated message or the project’s default message
string
Example generated
{ "ids": [ 1 ], "commit_message": "example"}Responses
Section titled “ Responses ”OK
Media type application/json
object
id
integer format: int64
from_line
integer
to_line
integer
appliable
boolean
applied
boolean
from_content
string
to_content
string
Example
{ "id": 1, "from_line": 1, "to_line": 1, "appliable": true, "applied": false, "from_content": "Original content\n", "to_content": "New content\n"}Bad Request