v51

latestOpenAPI 3.0.0Apache 2.0raw.githubusercontent.com2026-08-011534301009.2 KB
Notifications

Update a notification rule

Update notification rule.

put/api/v1/notification/rules/{ruleId}

Path parameters

ruleIdstring required
Example:01G65Z755AFWAKHE12NY0CQ9FH

Request body

OR
OR
OR

Example request

{
  "name": "Balance threshold reached",
  "disabled": true,
  "metadata": {
    "externalId": "019142cc-a016-796a-8113-1a942fecd26d"
  },
  "thresholds": [
    {
      "value": 100
    }
  ],
  "channels": [
    "01G65Z755AFWAKHE12NY0CQ9FH"
  ]
}

Response

The request has succeeded.

OR
OR
OR

Example response

{
  "createdAt": "2024-01-01T01:01:01.001Z",
  "updatedAt": "2024-01-01T01:01:01.001Z",
  "deletedAt": "2024-01-01T01:01:01.001Z",
  "id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
  "name": "Balance threshold reached",
  "disabled": true,
  "channels": [
    {
      "id": "01ARZ3NDEKTSV4RRFFQ69G5FAV"
    }
  ],
  "annotations": {
    "externalId": "019142cc-a016-796a-8113-1a942fecd26d"
  },
  "metadata": {
    "externalId": "019142cc-a016-796a-8113-1a942fecd26d"
  },
  "thresholds": [
    {
      "value": 100
    }
  ],
  "features": [
    {
      "id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
      "key": "gpt4_tokens"
    }
  ]
}