GitLab API icon

GitLab API

Gitlab

Actions1062

Suggestions → putApiV4SuggestionsIdApply

AI-generated

Summary

Applies a suggestion to a GitLab project by sending a PUT request to the suggestions API endpoint.

Inputs

  • skipAuthentication — When enabled, skips GitLab authentication.
  • authentication (required) — The GitLab API credential to use.
  • baseUrl — The base URL for the GitLab instance.
  • id (required) — The ID of the suggestion to apply.
  • putApiV4SuggestionsIdApply (required) — The request body schema for the suggestion apply operation.

Output shape

a single item representing the updated suggestion

Returns the result of the GitLab API PUT request to /api/v4/suggestions/{id}/apply.

Examples

Example 1: Apply a suggestion with ID 123 to a project

Set id to 123 and provide the request body in the putApiV4SuggestionsIdApply field.

Links

Discussion