Manage Spam Filters
Create a new spam filter
Create a new spam filter for your organization. Provide either structured filter criteria or a raw OTTL condition in the spec, but not both.
If metadata.labels["dash0.com/origin"] is provided, it must be unique within the organization and dataset. A request with a duplicate origin returns 400. If no origin is provided, the server auto-generates one (api-<uuid>).
post/api/spam-filters
Request
- Base URL: https://api.eu-west-1.aws.dash0.com
- URL: https://api.eu-west-1.aws.dash0.com/api/spam-filters
- Auth: none declared
Query parameters
datasetstring
Optional dataset to query across. Defaults to whatever is configured to be the default dataset for the organization.
Request body
Example request
{
"spec": {
"filter": [
{
"key": "service.name",
"operator": "is",
"value": "foo"
}
]
}
}Response
The created spam filter
Example response
{
"spec": {
"filter": [
{
"key": "service.name",
"operator": "is",
"value": "foo"
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.