---
title: "Apply multiple suggestions to a merge request"
method: PUT
path: "/api/v4/suggestions/batch_apply"
tags: ["suggestions"]
---

# Apply multiple suggestions to a merge request

`PUT /api/v4/suggestions/batch_apply`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/suggestions/batch_apply`
- Auth: none declared

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

## Request body

- PutApiV4SuggestionsBatchApply: Apply multiple suggestions to a merge request
  - `ids` integer[], required: An array of the suggestion IDs
  - `commit_message` string: A custom commit message to use instead of the default generated message or the project's default message

## Response `200`

Apply multiple suggestions to a merge request

- APIEntitiesSuggestion: API_Entities_Suggestion model
  - `id` integer, required
  - `from_line` integer, required
  - `to_line` integer, required
  - `appliable` boolean, required
  - `applied` boolean, required
  - `from_content` string, required
  - `to_content` string, required

---

[API](https://skmtc.dev/gitlab/apis/gitlab-api.md) - [All operations](https://skmtc.dev/gitlab/apis/gitlab-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitlab/apis/gitlab-api/revisions/b234947ef3f2?raw)
