Notifications API
Send a sample event to every target of a rule
Changed onThe rule does not need to be saved. Filters, digest, quiet hours and cooldown are bypassed.
post/rest/api/v1/projects/{projectId}/notificationRules/test
Request
- Base URLhttps://api.metacopier.io
- AuthAPI key in header X-API-KEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
projectIdstring uuid required
Request body
Example request
{
"rule": {
"cooldown": {
"minutes": 15
},
"digest": {
"windowSeconds": 60
},
"kind": "RULE",
"name": "Errors to Teams",
"quietHours": {
"after": "SUMMARY",
"from": "22:00",
"timeZone": "Europe/Zurich",
"to": "07:00"
},
"targets": [
{
"recipient": "@john"
}
]
}
}Response
OK
Changes
- info
endpoint added
- info