Resolve an ongoing incident

This will resolve an ongoing incident.

POST https://uptime.betterstack.com/api/v2/incidents/{incident_id}/resolve

URL parameters

incident_id
required string

Headers

Authorization
required string

Body parameters

resolved_by
string
200

Response body

{
  "data": {
    "id": "123456789",
    "type": "incident",
    "attributes": {
      "name": "uptime homepage",
      "url": "https://uptime.betterstack.com/",
      "http_method": "get",
      "cause": "Status 500",
      "incident_group_id": null,
      "started_at": "2020-03-09T17:37:56.662Z",
      "acknowledged_at": null,
      "acknowledged_by": null,
      "resolved_at": "2020-03-09T19:37:56.662Z",
      "resolved_by": "Elon Musk",
      "response_content": "\n404 Not Found\n\nNot Found\nThe requested URL /fail was not found on this server.\n",
      "response_options": "{}",
      "regions": [
        "us",
        "eu",
        "as",
        "au"
      ],
      "response_url": null,
      "screenshot_url": null,
      "origin_url": null,
      "escalation_policy_id": null,
      "call": true,
      "sms": true,
      "email": true,
      "push": true
    },
    "relationships": {
      "monitor": {
        "data": {
          "id": "2",
          "type": "monitor"
        }
      }
    }
  }
}
409

Response body

{
  "errors": "Incident was already resolved"
}

Example cURL

Example
curl --request POST \
  --url https://uptime.betterstack.com/api/v2/incidents/123456/resolve \
  --header "Authorization: Bearer $TEAM_TOKEN"
  --header 'Content-Type: application/json'
  --data '{"resolved_by": "elon@spacex.com"}'