<!-- source: https://secondlayer.tools/docs/api-reference#dismiss-insight -->

## Dismiss an insight

`POST /api/insights/{id}/dismiss` (self-hosted instances only)

Hides this incident. If the same rule fires again after it clears, the new incident shows. Takes no body.

### Path parameters

| Name | Type | Description |
| --- | --- | --- |
| `id` | string, required | Insight id (UUID), as returned by the insights list. |

### Responses

- `200` Dismissed
- `400` A parameter, filter, cursor or body field was refused; `code` says which
- `401` This bind requires the instance token, and it was missing or wrong
- `404` No insight with this id
- `415` Missing or non-JSON `Content-Type` (`UNSUPPORTED_MEDIA_TYPE`) — writes must send `Content-Type: application/json`

### Example

```bash
curl -X POST http://127.0.0.1:3800/api/insights/{id}/dismiss \
  -H "Authorization: Bearer $INSTANCE_TOKEN"
```

```json
{
  "ok": true
}
```
