Skip to content

Delete a metric image from an incident

DELETE
/api/v4/projects/{id}/issues/{issue_iid}/metric_images/{metric_image_id}

Deletes a metric image from an incident.

id
required
One of:
string

The ID or URL-encoded path of the project

metric_image_id
required
integer

The ID of metric image

issue_iid
required
integer

The internal ID of an issuable

No Content

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": 1,
"created_at": "2022-01-31T15:10:45.080Z",
"filename": "image.png",
"file_path": "/uploads/-/system/issuable_metric_image/file/1/image.png",
"url": "https://gitlab.example.com/example",
"url_text": "Example URL"
}

Bad Request

Not Found