GitLab API

GitlabTool

Actions1095

Alert_management → putApiV4ProjectsIdAlertManagementAlertsAlertIidMetricImagesMetricImageId

AI-generated

Summary

Update a specific metric image of an alert in a GitLab project by providing project ID, alert IID, and metric image ID, optionally including a URL and its description.

Inputs

  • id (required) — The ID or URL-encoded path of the project.
  • alert_iid (required) — The internal ID (IID) of the alert.
  • metric_image_id (required) — The ID of the metric image to update.
  • url — The URL to view more metric information.
  • url_text — A description for the URL or the metric image.
  • skipAuthentication — Boolean to skip API authentication; defaults to false.
  • baseUrl — Base URL of the GitLab instance; defaults to https://gitlab.com.

Output shape

a single JSON object representing the updated metric image resource returned by the GitLab API

The operation returns the updated metric image data. Authentication is required unless explicitly skipped. The API endpoint used is PUT /api/v4/projects/{id}/alert_management_alerts/{alert_iid}/metric_images/{metric_image_id}.

Links

Discussion