metric_images

Upload a metric image for an incident

Uploads a screenshot of metric charts for an incident. Available only for incidents.

post/api/v4/projects/{id}/issues/{issue_iid}/metric_images

Request

  • Base URL
    https://gitlab.com
  • Auth
    none declared

Path parameters

idstring required

The ID or URL-encoded path of the project

issue_iidinteger required

Request body

filestring binary required

The image file to be uploaded

urlstring

The url to view more metric info

url_textstring

A description of the image or URL

Response

Upload a metric image for an incident

idinteger required
created_atstring date-time required
filenamestring required
file_pathstring required
urlstring required
url_textstring required

Example response

{
  "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"
}

Changes

No recorded changes to this operation across all 5 revisions of this API.