suggestions
Apply a suggestion to a merge request
Applies a suggested patch in a merge request. You must have the Developer, Maintainer, or Owner role.
put/api/v4/suggestions/{id}/apply
Request
- Base URLhttps://gitlab.com
- Authnone declared
Path parameters
idinteger required
The ID of the suggestion
Request body
Response
Apply a suggestion to a merge request
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.