OpenMeter Notifications

Update notification rule

Changed on

Update a notification rule by id.

put/openmeter/notification/rules/{notificationRuleId}

Request

  • Base URL: http://localhost:8888/api/v3
  • URL: http://localhost:8888/api/v3/openmeter/notification/rules/{notificationRuleId}
  • Auth: none declared

Path parameters

notificationRuleIdstring required

ULID (Universally Unique Lexicographically Sortable Identifier).

Example:01G65Z755AFWAKHE12NY0CQ9FH

Request body

OR
OR
OR

Example request

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

Response

NotificationRule updated 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