Create a shared exception list
Spaces method and path for this operation:
post /s/{space_id}/api/exceptions/shared
Refer to Spaces for more information.
An exception list groups exception items and can be associated with detection rules. A shared exception list can apply to multiple detection rules.
All exception items added to the same list are evaluated using OR logic. That is, if any of the items in a list evaluate to true, the exception prevents the rule from generating an alert. Likewise, OR logic is used for evaluating exceptions when more than one exception list is assigned to a rule. To use the AND operator, you can define multiple clauses (entries) in a single exception item.
POST
/api/exceptions/shared
curl \
--request POST 'https://localhost:5601/api/exceptions/shared' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"description":"string","name":"string"}'