Replace accountId and of course, test out the rule to match your use case
mutation {
nrqlDropRulesCreate(accountId: 1147177, rules: [
{
action: DROP_DATA
nrql: "SELECT * FROM TestEvent WHERE appName='NR-One Production'"
description: "drop data from appName is 'NR-One Production'"
}
])
{
successes { id }
failures {
submitted { nrql }
error { reason description }
}
}
}