Update a metric image for an alert

PUT /projects/{id}/alert_management_alerts/{alert_iid}/metric_images/{metric_image_id}

Update a metric image for an alert

Path parameters

  • id string | integer Required
  • alert_iid integer(int32) Required

    The IID of the Alert

  • metric_image_id integer(int32) Required

    The ID of metric image

multipart/form-data

Body

  • url string

    The url to view more metric info

  • url_text string

    A description of the image or URL

Responses

  • 200 application/json

    Update a metric image for an alert

    Hide response attributes Show response attributes object
    • id integer(int32)
    • created_at string(date-time)
    • filename string
    • file_path string
    • url string
    • url_text string
  • 403

    Forbidden

  • 422

    Unprocessable entity

PUT /projects/{id}/alert_management_alerts/{alert_iid}/metric_images/{metric_image_id}
curl \
 --request PUT 'https://www.gitlab.com/api/v4/projects/gitlab-org/gitlab/alert_management_alerts/{alert_iid}/metric_images/{metric_image_id}' \
 --header "Private-Token: $API_KEY" \
 --header "Content-Type: multipart/form-data" \
 --form "url=string" \
 --form "url_text=string"
Response examples (200)
{
  "id": 23,
  "created_at": "2020-11-13T00:06:18Z",
  "filename": "file.png",
  "file_path": "/uploads/-/system/alert_metric_image/file/23/file.png",
  "url": "https://example.com/metric",
  "url_text": "An example metric"
}