GitLab API

GitlabTool

Actions1095

Alert_management → postApiV4ProjectsIdAlertManagementAlertsAlertIidMetricImages

AI-generated

Summary

Upload a metric image file to a specific alert within a project in GitLab's Alert Management system.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project containing the alert.
  • alert_iid (required) — The internal ID (IID) of the alert within the project to which the metric image will be uploaded.
  • file (required) — The image file to upload representing the metric.
  • url — An optional URL linking to additional metric information.
  • url_text — An optional text description of the image or URL.

Output shape

a single record representing the uploaded metric image associated with the alert

This operation sends a POST request with multipart/form-data to upload the metric image and returns the API's response containing the details of the uploaded image.

Links

Discussion