Skip to content

Return alert IIDs and title in create response

Sean Arnold requested to merge 342730-add-alert-id-to-alert-response into master

What does this MR do and why?

This adds a response body to the create GitLab Alert endpoint.

Request:

{
    "title": "Memory usage exceeded threshold"
}

Response:

[
    {
        "iid": "1",
        "title": "Memory usage exceeded threshold"
    }
]

This is not considered a breaking change because the existing behaviour remains of returning a 200 response code. (Previously we returned a 200 with no response body).

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #342730 (closed)

Edited by Sean Arnold

Merge request reports