GitLab API icon

GitLab API

Gitlab

Actions1062

Alert_management → postApiV4ProjectsIdAlertManagementAlertsAlertIidMetricImages

AI-generated

Summary

Upload a metric image to a specific alert within a project on GitLab's Alert Management API.

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 attached.
  • file (required) — The image file to upload and associate with the alert's metrics.
  • url — Optional URL linking to more detailed metric information.
  • url_text — Optional descriptive text for the image or URL provided.

Output shape

a single record representing the uploaded metric image object

The operation sends a multipart/form-data POST request and returns the created metric image resource. Authentication is required unless skipped via the 'Skip Authentication' option. The response includes details about the uploaded image linked to the alert.

Links

Discussion