OpenMeter Notifications

Create notification rule

Changed on

Create 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

OR
OR
OR

Example request

{
  "labels": {
    "env": "test"
  },
  "channels": [
    {
      "id": "01G65Z755AFWAKHE12NY0CQ9FH"
    }
  ],
  "features": [
    {
      "id": "01G65Z755AFWAKHE12NY0CQ9FH"
    }
  ]
}

Response

NotificationRule created response.

OR
OR
OR

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