Update an error

Resolves, ignores, or reopens an error.

PATCH https://errors.betterstack.com/api/v2/applications/{application_id}/errors/{pattern}

URL parameters

application_id
required integer
pattern
required string

Headers

Authorization
required string
Content-Type
required string

Body parameters

state
required string
ignore_next_count
integer
200

Response body

{
  "data": {
    "id": "6f1c2b9a8e4d7f3012ab45cd",
    "type": "error",
    "attributes": {
      "application_id": 123,
      "type": "TypeError",
      "message": "Cannot read properties of undefined (reading 'id')",
      "call_site_function": "renderCart",
      "call_site_file": "app/javascript/cart.js",
      "environments": [
        "production"
      ],
      "state": "ignored",
      "first_seen_at": "2026-11-10T08:12:44Z",
      "last_seen_at": "2026-11-16T07:58:02Z",
      "resolved_in_release_id": null,
      "ignored_until_count": 192,
      "linked_issues": [
        {
          "id": 42,
          "integration_id": 7,
          "integration_type": "linear",
          "external_id": "ENG-123",
          "label": "ENG-123",
          "url": "https://linear.app/example/issue/ENG-123",
          "operation": "linked_manually"
        }
      ],
      "url": "https://errors.betterstack.com/team/t12345/errors/6f1c2b9a8e4d7f3012ab45cd?s=123"
    }
  }
}
401

Response body

{
  "errors": "Invalid authentication"
}
404

Response body

{
  "errors": "Resource with the provided ID was not found"
}
422

Response body

{
  "errors": "Sorry, some values are incorrect",
  "invalid_values": {
    "ignore_next_count": "ignore_next_count must be 1, 10, 100, or 1000."
  }
}
422

Response body

{
  "errors": "Sorry, you are missing some required attributes",
  "required_attributes": [
    "state"
  ]
}

Example cURL

Resolve Ignore the next 10
curl --request PATCH \
  --url https://errors.betterstack.com/api/v2/applications/123/errors/6f1c2b9a8e4d7f3012ab45cd \
  --header "Authorization: Bearer $TOKEN" \
  --header "Content-Type: application/json" \
  --data '{"state": "resolved"}'
curl --request PATCH \
  --url https://errors.betterstack.com/api/v2/applications/123/errors/6f1c2b9a8e4d7f3012ab45cd \
  --header "Authorization: Bearer $TOKEN" \
  --header "Content-Type: application/json" \
  --data '{"state": "ignored", "ignore_next_count": 10}'