# How do I use Exceptions\_list and Alert\_Suppressions schemas for detections in TOML format?

**URL:** https://discuss.elastic.co/t/how-do-i-use-exceptions-list-and-alert-suppressions-schemas-for-detections-in-toml-format/374036
**Category:** Elastic Security
**Tags:** detection-rules
**Created:** [February 3, 2025, 11:42pm UTC](https://discuss.elastic.co/t/how-do-i-use-exceptions-list-and-alert-suppressions-schemas-for-detections-in-toml-format/374036 "2025-02-03T23:42:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![obsidian](https://avatars.discourse-cdn.com/v4/letter/o/51bf81/32.png) [@obsidian](https://discuss.elastic.co/u/obsidian)
#### Post date: [February 3, 2025, 11:42pm UTC](https://discuss.elastic.co/t/how-do-i-use-exceptions-list-and-alert-suppressions-schemas-for-detections-in-toml-format/374036/1 "2025-02-03T23:42:49Z")

</div>

Per the detection rules API documentation and elastic detection rules repo, I am unable to find examples of how to use these objects in TOML format. How would these schema's look in TOML? My detections show up in elastic using the detections API but are missing these fields.

So far I have tried

```auto
[alert_suppression]
group_by = ["example"]
missing_fields_strategy = "suppress"

  [alert_suppression.duration]
  unit = "h"
  value = 5

```

and

```auto
[[exceptions_list]]
id = "test-id"
list_id = "test-list-id"
namespace_type = "single"
type = "detection"

```

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [March 3, 2025, 11:43pm UTC](https://discuss.elastic.co/t/how-do-i-use-exceptions-list-and-alert-suppressions-schemas-for-detections-in-toml-format/374036/2 "2025-03-03T23:43:00Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
