OpenMeter Notifications
Create notification rule
Changed onCreate a notification rule.
post/openmeter/notification/rules
Request
- Base URL: http://localhost:8888/api/v3
- URL: http://localhost:8888/api/v3/openmeter/notification/rules
- Auth: none declared
Request body
Example request
{
"labels": {
"env": "test"
},
"channels": [
{
"id": "01G65Z755AFWAKHE12NY0CQ9FH"
}
],
"features": [
{
"id": "01G65Z755AFWAKHE12NY0CQ9FH"
}
]
}Response
NotificationRule created response.
Example response
{
"id": "01G65Z755AFWAKHE12NY0CQ9FH",
"labels": {
"env": "test"
},
"created_at": "2023-01-01T01:01:01.001Z",
"updated_at": "2023-01-01T01:01:01.001Z",
"deleted_at": "2023-01-01T01:01:01.001Z",
"channels": [
{
"id": "01G65Z755AFWAKHE12NY0CQ9FH"
}
],
"features": [
{
"id": "01G65Z755AFWAKHE12NY0CQ9FH"
}
]
}Changes
- ○
endpoint added
- ○