Skip to content

Upload a metric image

POST
/api/v4/projects/{id}/alert_management_alerts/{alert_iid}/metric_images

Uploads a metric image for a specified alert.

id
required
One of:
string

The ID or URL-encoded path of the project

Example
17
alert_iid
required
integer

The IID of the Alert

Example
23
Media type multipart/form-data
object
file
required

The image file to be uploaded

string format: binary
nullable
url

The url to view more metric info

string
nullable
Example
https://example.com/metric
url_text

A description of the image or URL

string
nullable
Example
An example metric

OK

Media type application/json
object
id
integer format: int64
created_at
string format: date-time
filename
string
file_path
string
url
string
url_text
string
Example
{
"id": 23,
"created_at": "2020-11-13T00:06:18.084Z",
"filename": "file.png",
"file_path": "/uploads/-/system/alert_metric_image/file/23/file.png",
"url": "https://example.com/metric",
"url_text": "An example metric"
}

Bad Request

Forbidden

Not Found