---
agentTools:
  projectIndex: https://docs.rollbar.com/llms.txt
---

# /api/1/notifications/webhook/rule/{rule_id}

Update a notification rule by ID

# OpenAPI definition

````json
{
  "openapi": "3.1.0",
  "servers": [
    {
      "url": "https://api.rollbar.com"
    }
  ],
  "tags": [
    {
      "name": "Occurrence"
    },
    {
      "name": "Metrics"
    },
    {
      "name": "Notification Channels"
    },
    {
      "name": "Slack Notification Rules"
    },
    {
      "name": "Webhook Notification Rules"
    },
    {
      "name": "Service Links"
    }
  ],
  "info": {
    "title": "Rollbar API",
    "version": "1.0",
    "description": "# Getting Started\nThe Rollbar API provides a RESTful interface to much of the data in the\nsystem. It is used by our official libraries to report exceptions,\ndeploys, and other messages. It can be used to create notifiers for\nadditional languages, get data out to integrate with other systems, or\nwhatever else you can imagine. If the API is missing something you'd\nlike to see, please [let us know](support@rollbar.com).\n\n# Ping\nTo test whether you're able to ping the API server, you can simply run the\nfollowing command:\n\n```\ncurl 'https://api.rollbar.com/api/1/status/ping'\n```\n\nYou will get back pong from our server if your request was successful.\n\n# Timestamps\nAll timestamps (inputs and outputs) are GMT unix timestamps.\n\n# Authentication\nAuthentication is done via access token included as a header parameter. For authenticated requests, pass your access token\nthrough the `X-Rollbar-Access-Token` parameter in the header.\n\n```\ncurl -H \"X-Rollbar-Access-Token: YOUR_ACCESS_TOKEN\" 'https://api.rollbar.com/api/1/item/12345'\n```\n\nThere are two kinds of access token: project access tokens and account access tokens. Each\nendpoint's `X-Rollbar-Access-Token` parameter says which kinds it accepts and the scope the\ntoken needs.\n\n## Project access tokens\nA project access token belongs to one project and reaches only that project. You can find and\nadminister your project access tokens in the project's Settings -> Project Access Tokens.\nProject access tokens can have any or all of the following scopes:\n\n### post_server_item\nCan perform all POST requests to /deploy/ and /item/. Can also be used to upload source maps (JS, proguard, dSym, flutter)\n\n### post_client_item\nCan perform POST requests to /item/, but only if the item has a client-side platform (browser, mobile)\n\n### read\nCan perform GET requests, and the POST requests that run queries, such as the Metrics and RQL endpoints\n\n### write\nCan perform the POST, PUT, PATCH, and DELETE requests that change data, other than the ones covered by `post_server_item` and `post_client_item`\n\n## Account Access Tokens\nAn account access token belongs to an account. On an endpoint that acts on one project, an\naccount access token names the project with a `project_id` parameter. When `project_id` is in\nthe path, as in `/api/1/project/{project_id}`, a project that does not exist, belongs to\nanother account, or has been deleted is a `404`. Everywhere else, that project is refused with\na `403` whose message is `Requires project access`.\n\nThere are two kinds of account access token:\n\n* **Service tokens** are account-wide. They reach every project in the account and are not\n  tied to a user. Account owners create them on the Service tab of {Account name} Settings ->\n  API Access Tokens.\n* **Personal access tokens** are scoped to one user, and can do only what that user can do in\n  Rollbar. Each user creates their own in User Settings -> Personal access tokens, and account\n  owners can see and manage all of the account's personal access tokens on the Personal tab of\n  {Account name} Settings -> API Access Tokens. See Personal access tokens below.\n\nAccount access tokens can have the following scopes:\n\n### read\nCan perform GET requests, and the POST requests that run queries, on the account and its projects.\n\n### write\nCan perform the POST, PUT, PATCH, and DELETE requests that change data in the account and its projects.\n\n## Personal access tokens\nA personal access token carries the permissions of the user it belongs to, so a request made\nwith one succeeds only when that user could do the same thing in Rollbar.\n\n* A project that none of the user's teams has access to is refused with a `403` whose message\n  is `Requires project access`, even where a project that does not exist is a `404`.\n* An action the user is not permitted to take is refused with a `403` whose message names the\n  permission it requires, such as `Requires config permission`.\n* Some list endpoints, such as `GET /api/1/projects`, return only what the user can see.\n  Others are refused with a `403` unless the user can see the whole list. Each endpoint's\n  description says which.\n* The token stops working when its user is removed from the account, is deleted, or is\n  locked out of Rollbar. Requests made with it are then refused with a `403`.\n\nA user holds a permission through the access level of their teams:\n\n| Permission | On | Held by members of |\n|---|---|---|\n| `view`, `comment` | a project | Any team with access to the project |\n| `collab` | a project | A team with Light, Standard, or Owner access to the project |\n| `config` | a project | A team with Standard or Owner access to the project |\n| `view` | the account | A team with Standard or Owner access |\n| `edit` | the account | A team with Owner access |\n\nThe account's Everyone team, which users join when they are added to the account, counts as a\nteam with Standard access. So every member of the account holds `view` on the account, which\nlets them list its users, teams, and invitations, and holds `config` on each project the\nEveryone team has access to.\n\n# HTTP responses\nResponses are JSON objects. Most successful responses have `err` set to `0` and their data in\n`result`. These are the exceptions:\n\n* `POST /api/1/deploy` returns `{\"data\": {\"deploy_id\": ...}}`, with neither `err` nor `result`.\n* `POST /api/1/team/{team_id}/invites` returns `err` set to `0` and a `message` in place of\n  `result` when the email address belongs to a member of the account. It adds them to the team\n  rather than inviting them.\n* `GET /api/1/status/ping` returns `pong` (see Ping, above).\n\nAn error response has `err` set to `1` and a `message` that says what went wrong:\n\n```json\n{\"err\": 1, \"message\": \"Requires project access\"}\n```\n\nThe API can return the following HTTP response codes:\n\n### 200\tOK\nOperation was completed successfully\n\n### 400\tBad request\nThe request could not be parsed, or a parameter is not in a form the endpoint accepts, such as an ID in the path that is not an integer.\n\n### 401\tUnauthorized\nThe access token is missing, or is not in the form of a Rollbar access token.\n\n### 403\tAccess denied\nThe access token is not authorized for the request. That includes a token that does not exist, is disabled, or has expired, and a token without the scope the endpoint requires. It also includes a `project_id` the token can't use (see Account access tokens, above) and, for a personal access token, anything its user is not permitted to do (see Personal access tokens, above).\n\n### 404\tNot found\nThe requested resource was not found. This response will be returned if the URL is entirely invalid (i.e. /asdf), or if it is a URL that could be valid but is referencing something that does not exist (i.e. /item/12345), or that belongs to another account.\n\n### 409\tConflict\nThe request conflicts with the current state of a resource, such as a name that is already in use.\n\n### 413\tRequest entity too large\nThe request body is larger than the endpoint accepts. `POST /api/1/item/` accepts up to 1 MB.\n\n### 422\tUnprocessable Entity\nThe request was parseable (i.e. valid JSON), but some parameters were missing or otherwise invalid.\n\n### 429\tToo Many Requests\nThe access token is over its rate limit. The response carries these headers, and other responses may carry them too:\n\n* `X-Rate-Limit-Limit`: the number of requests the token may make in the current window\n* `X-Rate-Limit-Remaining`: the number of requests left in the current window\n* `X-Rate-Limit-Reset`: when the current window ends, as a Unix timestamp\n* `X-Rate-Limit-Remaining-Seconds`: the number of seconds until the current window ends\n\n# Examples\n\n### [api-examples](https://github.com/rollbar/api-examples)\nAuthor: Rollbar\n\nLanguage: Python\n\nExamples using RQL, deploys, occurrences, and reports\n\n### [api-people-example](https://github.com/rollbar/api-people-example)\nAuthor: Rollbar\n\nLanguage: Python\n\nShows how to gather the Person data for each occurrence of a list of items\n\n### [rolltools](https://github.com/jslate/rolltools)\nAuthor: Jonathan Slate\n\nLanguage: Ruby\n\nA few utilities using the Rollbar API\n"
  },
  "paths": {
    "/api/1/instances": {
      "get": {
        "tags": [
          "Occurrence"
        ],
        "summary": "List all occurrences in a project",
        "description": "Returns all occurrences in the project, in pages of 20. Order is descending by occurrence ID (which is approximately descending by timestamp).\n",
        "parameters": [
          {
            "name": "X-Rollbar-Access-Token",
            "in": "header",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            },
            "description": "Use a Project or Account Access Token with 'read' scope. An Account Access Token names the project with `project_id` on an endpoint that acts on one project, and a personal access token can do only what its user is permitted to."
          },
          {
            "name": "last_id",
            "in": "query",
            "description": "Instead of using the page number, you can pass the ID of the last occurrence listed on the page and it will be return the next 20 instances after that last occurrence ID. Overrides the page number if both are present.",
            "required": false,
            "schema": {
              "type": "integer",
              "default": null
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, starting from 1. The default number of elements returned per page is 20. Set the limit parameter to update that.",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Sets the limit for number of items returned per page. Default is 20 and the max is 5000.",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "project_id",
            "in": "query",
            "description": "Project ID, required when using an Account Access Token with this endpoint.",
            "required": false,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "err": {
                      "type": "integer",
                      "enum": [
                        0
                      ]
                    },
                    "result": {
                      "type": "object",
                      "$ref": "#/components/schemas/PaginatedOccurrenceInstances"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The access token is missing, or is not in the form of a Rollbar access token.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "err",
                    "message"
                  ],
                  "properties": {
                    "err": {
                      "type": "integer",
                      "enum": [
                        1
                      ]
                    },
                    "message": {
                      "type": "string",
                      "description": "What went wrong"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The access token is not authorized for the project. With a personal access token, the user needs `view` permission on the project.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1api~11~1instances/get/responses/401/content/application~1json/schema"
                }
              }
            }
          },
          "429": {
            "description": "The access token is over its rate limit.",
            "headers": {
              "X-Rate-Limit-Limit": {
                "description": "The number of requests the access token may make in the current window",
                "schema": {
                  "type": "integer"
                }
              },
              "X-Rate-Limit-Remaining": {
                "description": "The number of requests left in the current window",
                "schema": {
                  "type": "integer"
                }
              },
              "X-Rate-Limit-Reset": {
                "description": "When the current window ends, as a Unix timestamp",
                "schema": {
                  "type": "integer"
                }
              },
              "X-Rate-Limit-Remaining-Seconds": {
                "description": "The number of seconds until the current window ends",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1api~11~1instances/get/responses/401/content/application~1json/schema"
                }
              }
            }
          }
        }
      }
    },
    "/api/1/metrics/ttr": {
      "post": {
        "tags": [
          "Metrics"
        ],
        "summary": "Get resolution time metrics for a list of projects",
        "description": "Get resolution time metrics for a provided list of project IDs. It can be filtered by environments, levels and frameworks.",
        "parameters": [
          {
            "$ref": "#/paths/~1api~11~1instances/get/parameters/0"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TTRMetrics"
              },
              "example": {
                "start_time": 1669971600,
                "end_time": 1670576400,
                "granularity": "week",
                "function": "median",
                "timezone": "US/Pacific",
                "project_ids": [
                  1,
                  2,
                  3
                ],
                "environments": [
                  "production"
                ],
                "levels": [
                  "error"
                ],
                "frameworks": [
                  "pyramid"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "List of metrics for the requested project IDs",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "err": {
                      "type": "integer",
                      "enum": [
                        0
                      ]
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "$ref": "#/components/schemas/TTRMetricsData"
                        },
                        "params": {
                          "$ref": "#/components/schemas/TTRMetricsParams"
                        }
                      }
                    }
                  }
                },
                "example": {
                  "err": 0,
                  "result": {
                    "data": [
                      {
                        "timestamp": 1669971600,
                        "ttr": 583399
                      },
                      {
                        "timestamp": 1670576400,
                        "ttr": 435324
                      }
                    ],
                    "params": {
                      "start_time": 1632500000,
                      "granularity": "week",
                      "function": "median"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request could not be parsed, or a parameter is not in a form the endpoint accepts.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1api~11~1instances/get/responses/401/content/application~1json/schema"
                }
              }
            }
          },
          "401": {
            "$ref": "#/paths/~1api~11~1instances/get/responses/401"
          },
          "403": {
            "description": "The access token is not authorized for any of the requested projects. Projects in `project_ids` that the token can't read are left out of the query, and the request is refused only when none are left. Also returned when the account's plan doesn't include the Metrics API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1api~11~1instances/get/responses/401/content/application~1json/schema"
                }
              }
            }
          },
          "404": {
            "description": "The token's project or account could not be found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1api~11~1instances/get/responses/401/content/application~1json/schema"
                }
              }
            }
          },
          "429": {
            "$ref": "#/paths/~1api~11~1instances/get/responses/429"
          }
        }
      }
    },
    "/api/1/notifications/slack": {
      "put": {
        "tags": [
          "Notification Channels"
        ],
        "description": "Configuring Slack integration",
        "parameters": [
          {
            "$ref": "#/paths/~1api~11~1service_links/post/parameters/0"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SlackIntegrationConfig"
              },
              "example": {
                "enabled": true,
                "channel": "#general",
                "service_account_id": 12345
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "$ref": "#/components/schemas/EmptyResponse"
                },
                "example": {
                  "err": 0,
                  "result": {}
                }
              }
            }
          },
          "400": {
            "$ref": "#/paths/~1api~11~1metrics~1ttr/post/responses/400"
          },
          "401": {
            "$ref": "#/paths/~1api~11~1instances/get/responses/401"
          },
          "403": {
            "description": "The access token is not authorized for the project. With a personal access token, the user needs `collab` permission on the project.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1api~11~1instances/get/responses/401/content/application~1json/schema"
                }
              }
            }
          },
          "422": {
            "$ref": "#/paths/~1api~11~1service_links/post/responses/422"
          },
          "429": {
            "$ref": "#/paths/~1api~11~1instances/get/responses/429"
          }
        }
      }
    },
    "/api/1/notifications/slack/rule/{rule_id}": {
      "get": {
        "tags": [
          "Slack Notification Rules"
        ],
        "description": "Get a notification rule by ID",
        "parameters": [
          {
            "$ref": "#/paths/~1api~11~1instances/get/parameters/0"
          },
          {
            "name": "rule_id",
            "in": "path",
            "schema": {
              "type": "integer"
            },
            "required": true,
            "description": "The notification rule ID"
          },
          {
            "$ref": "#/paths/~1api~11~1instances/get/parameters/4"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "$ref": "#/components/schemas/SlackRuleResponse"
                },
                "example": {
                  "err": 0,
                  "result": {
                    "id": 1000,
                    "trigger": "new_item",
                    "status": "enabled",
                    "filters": [
                      {
                        "type": "environment",
                        "operation": "eq",
                        "value": "production"
                      },
                      {
                        "type": "level",
                        "operation": "gte",
                        "value": "error"
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/paths/~1api~11~1metrics~1ttr/post/responses/400"
          },
          "401": {
            "$ref": "#/paths/~1api~11~1instances/get/responses/401"
          },
          "403": {
            "$ref": "#/paths/~1api~11~1notifications~1slack/put/responses/403"
          },
          "404": {
            "$ref": "#/paths/~1api~11~1metrics~1ttr/post/responses/404",
            "description": "The rule does not exist in the project, is not a Slack rule, or has been deleted."
          },
          "429": {
            "$ref": "#/paths/~1api~11~1instances/get/responses/429"
          }
        }
      }
    },
    "/api/1/notifications/webhook/rule/{rule_id}": {
      "put": {
        "tags": [
          "Webhook Notification Rules"
        ],
        "description": "Update a notification rule by ID",
        "parameters": [
          {
            "$ref": "#/paths/~1api~11~1service_links/post/parameters/0"
          },
          {
            "$ref": "#/paths/~1api~11~1notifications~1slack~1rule~1{rule_id}/get/parameters/1"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/WebhookRule"
                  },
                  {
                    "$ref": "#/components/schemas/OptionalProjectIdObject"
                  }
                ]
              },
              "example": {
                "trigger": "new_item",
                "status": "enabled",
                "filters": [
                  {
                    "type": "environment",
                    "operation": "eq",
                    "value": "production"
                  },
                  {
                    "type": "level",
                    "operation": "gte",
                    "value": "error"
                  }
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookRuleResponse"
                },
                "example": {
                  "err": 0,
                  "result": {
                    "id": 1000,
                    "trigger": "new_item",
                    "status": "enabled",
                    "filters": [
                      {
                        "type": "environment",
                        "operation": "eq",
                        "value": "production"
                      },
                      {
                        "type": "level",
                        "operation": "gte",
                        "value": "error"
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/paths/~1api~11~1metrics~1ttr/post/responses/400"
          },
          "401": {
            "$ref": "#/paths/~1api~11~1instances/get/responses/401"
          },
          "403": {
            "$ref": "#/paths/~1api~11~1notifications~1slack/put/responses/403"
          },
          "404": {
            "$ref": "#/paths/~1api~11~1metrics~1ttr/post/responses/404",
            "description": "The rule does not exist in the project, is not a webhook rule, or has been deleted."
          },
          "422": {
            "$ref": "#/paths/~1api~11~1service_links/post/responses/422"
          },
          "429": {
            "$ref": "#/paths/~1api~11~1instances/get/responses/429"
          }
        }
      }
    },
    "/api/1/service_links": {
      "post": {
        "tags": [
          "Service Links"
        ],
        "description": "Create Service Links",
        "parameters": [
          {
            "name": "X-Rollbar-Access-Token",
            "in": "header",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            },
            "description": "Use a Project or Account Access Token with 'write' scope. An Account Access Token names the project with `project_id` on an endpoint that acts on one project, and a personal access token can do only what its user is permitted to."
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ServiceLink"
              },
              "example": {
                "name": "new_service_link",
                "template": "template.{{ssss}}"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceLinkResponse"
                },
                "example": {
                  "err": 0,
                  "result": {
                    "id": 1000,
                    "name": "new_service_link",
                    "template": "template.{{ssss}}"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/paths/~1api~11~1metrics~1ttr/post/responses/400"
          },
          "401": {
            "$ref": "#/paths/~1api~11~1instances/get/responses/401"
          },
          "403": {
            "$ref": "#/paths/~1api~11~1metrics~1ttr/post/responses/403",
            "description": "The access token is not authorized for the project. With a personal access token, the user needs `config` permission on the project. Also returned when the project already has as many active service links as the account's plan allows."
          },
          "422": {
            "description": "The request was parsed, but a parameter is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1api~11~1instances/get/responses/401/content/application~1json/schema"
                }
              }
            }
          },
          "429": {
            "$ref": "#/paths/~1api~11~1instances/get/responses/429"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "WebhookRuleResponse": {
        "type": "object",
        "properties": {
          "err": {
            "type": "integer",
            "enum": [
              0,
              1
            ]
          },
          "result": {
            "$ref": "#/components/schemas/WebhookRule"
          }
        }
      },
      "WebhookRule": {
        "type": "object",
        "anyOf": [
          {
            "$ref": "#/components/schemas/WebhookNewItemRule"
          },
          {
            "$ref": "#/components/schemas/WebhookOccurrenceRule"
          },
          {
            "$ref": "#/components/schemas/WebhookDeployRule"
          },
          {
            "$ref": "#/components/schemas/WebhookReactivatedItemRule"
          },
          {
            "$ref": "#/components/schemas/WebhookResolvedItemRule"
          },
          {
            "$ref": "#/components/schemas/WebhookExpRepeatItemRule"
          },
          {
            "$ref": "#/components/schemas/WebhookReopenedItemRule"
          },
          {
            "$ref": "#/components/schemas/WebhookOccurrenceRateRule"
          }
        ],
        "discriminator": {
          "propertyName": "trigger",
          "mapping": {
            "new_item": "#/components/schemas/WebhookNewItemRule",
            "occurrence": "#/components/schemas/WebhookOccurrenceRule",
            "deploy": "#/components/schemas/WebhookDeployRule",
            "reactivated_item": "#/components/schemas/WebhookReactivatedItemRule",
            "resolved_item": "#/components/schemas/WebhookResolvedItemRule",
            "exp_repeat_item": "#/components/schemas/WebhookExpRepeatItemRule",
            "reopened_item": "#/components/schemas/WebhookReopenedItemRule",
            "occurrence_rate": "#/components/schemas/WebhookOccurrenceRateRule"
          }
        },
        "maxLength": 50,
        "uniqueItems": true
      },
      "WebhookNewItemRule": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/NewItemRule"
          },
          {
            "$ref": "#/components/schemas/WebhookRuleConfig"
          }
        ]
      },
      "WebhookOccurrenceRule": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/OccurrenceRule"
          },
          {
            "$ref": "#/components/schemas/WebhookRuleConfig"
          }
        ]
      },
      "WebhookDeployRule": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/DeployRule"
          },
          {
            "$ref": "#/components/schemas/WebhookRuleConfig"
          }
        ]
      },
      "WebhookReactivatedItemRule": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/ReactivatedItemRule"
          },
          {
            "$ref": "#/components/schemas/WebhookRuleConfig"
          }
        ]
      },
      "WebhookResolvedItemRule": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/ResolvedItemRule"
          },
          {
            "$ref": "#/components/schemas/WebhookRuleConfig"
          }
        ]
      },
      "WebhookExpRepeatItemRule": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/ExpRepeatItemRule"
          },
          {
            "$ref": "#/components/schemas/WebhookRuleConfig"
          }
        ]
      },
      "WebhookReopenedItemRule": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/ReopenedItemRule"
          },
          {
            "$ref": "#/components/schemas/WebhookRuleConfig"
          }
        ]
      },
      "WebhookOccurrenceRateRule": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/OccurrenceRateRule"
          },
          {
            "$ref": "#/components/schemas/WebhookRuleConfig"
          }
        ]
      },
      "WebhookRuleConfig": {
        "type": "object",
        "properties": {
          "config": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string",
                "description": "Defines a webhook url for this specific rule"
              },
              "format": {
                "type": "string",
                "description": "Request/response format can be JSON or XML"
              }
            }
          }
        }
      },
      "NewItemRule": {
        "type": "object",
        "required": [
          "trigger"
        ],
        "properties": {
          "trigger": {
            "type": "string",
            "enum": [
              "new_item"
            ],
            "description": "An error/ message is seen for the first time"
          },
          "status": {
            "type": "string",
            "enum": [
              "enabled",
              "disabled"
            ],
            "description": "Whether the rule should be active or not."
          },
          "filters": {
            "type": "array",
            "description": "To keep your notifications relevant, you'll want to apply filters to limit when they send messages or create incidents.",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/environment_filter"
                },
                {
                  "$ref": "#/components/schemas/level_filter"
                },
                {
                  "$ref": "#/components/schemas/title_filter"
                },
                {
                  "$ref": "#/components/schemas/filename_filter"
                },
                {
                  "$ref": "#/components/schemas/context_filter"
                },
                {
                  "$ref": "#/components/schemas/method_filter"
                },
                {
                  "$ref": "#/components/schemas/framework_filter"
                },
                {
                  "$ref": "#/components/schemas/path_filter"
                },
                {
                  "$ref": "#/components/schemas/path_filter_with_exists"
                }
              ]
            }
          }
        }
      },
      "OccurrenceRule": {
        "type": "object",
        "required": [
          "trigger"
        ],
        "properties": {
          "trigger": {
            "type": "string",
            "enum": [
              "occurrence"
            ],
            "description": "Every time an error/ message occurs (use wisely!)."
          },
          "status": {
            "type": "string",
            "enum": [
              "enabled",
              "disabled"
            ],
            "description": "Whether the rule should be active or not."
          },
          "filters": {
            "type": "array",
            "description": "To keep your notifications relevant, you'll want to apply filters to limit when they send messages or create incidents.",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/environment_filter"
                },
                {
                  "$ref": "#/components/schemas/level_filter"
                },
                {
                  "$ref": "#/components/schemas/title_filter"
                },
                {
                  "$ref": "#/components/schemas/filename_filter"
                },
                {
                  "$ref": "#/components/schemas/context_filter"
                },
                {
                  "$ref": "#/components/schemas/method_filter"
                },
                {
                  "$ref": "#/components/schemas/framework_filter"
                },
                {
                  "$ref": "#/components/schemas/path_filter"
                },
                {
                  "$ref": "#/components/schemas/path_filter_with_exists"
                },
                {
                  "$ref": "#/components/schemas/unique_occurences_filter"
                }
              ]
            }
          }
        }
      },
      "DeployRule": {
        "type": "object",
        "required": [
          "trigger"
        ],
        "properties": {
          "trigger": {
            "type": "string",
            "enum": [
              "deploy"
            ],
            "description": "A new deploy is reported."
          },
          "status": {
            "type": "string",
            "enum": [
              "enabled",
              "disabled"
            ],
            "description": "Whether the rule should be active or not."
          },
          "filters": {
            "type": "array",
            "description": "To keep your notifications relevant, you'll want to apply filters to limit when they send messages or create incidents.",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/environment_filter"
                },
                {
                  "$ref": "#/components/schemas/comment_filter"
                }
              ]
            }
          }
        }
      },
      "ReactivatedItemRule": {
        "required": [
          "trigger"
        ],
        "type": "object",
        "properties": {
          "trigger": {
            "type": "string",
            "enum": [
              "reactivated_item"
            ],
            "description": "An error/message occurs again after being marked Resolved"
          },
          "status": {
            "type": "string",
            "enum": [
              "enabled",
              "disabled"
            ],
            "description": "Whether the rule should be active or not."
          },
          "filters": {
            "type": "array",
            "description": "To keep your notifications relevant, you'll want to apply filters to limit when they send messages or create incidents.",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/environment_filter"
                },
                {
                  "$ref": "#/components/schemas/level_filter"
                },
                {
                  "$ref": "#/components/schemas/title_filter"
                },
                {
                  "$ref": "#/components/schemas/filename_filter"
                },
                {
                  "$ref": "#/components/schemas/context_filter"
                },
                {
                  "$ref": "#/components/schemas/method_filter"
                },
                {
                  "$ref": "#/components/schemas/framework_filter"
                },
                {
                  "$ref": "#/components/schemas/path_filter"
                },
                {
                  "$ref": "#/components/schemas/path_filter_with_exists"
                },
                {
                  "$ref": "#/components/schemas/unique_occurences_filter"
                }
              ]
            }
          }
        }
      },
      "ResolvedItemRule": {
        "required": [
          "trigger"
        ],
        "type": "object",
        "properties": {
          "trigger": {
            "type": "string",
            "enum": [
              "resolved_item"
            ],
            "description": "An error/message is marked Resolved."
          },
          "status": {
            "type": "string",
            "enum": [
              "enabled",
              "disabled"
            ],
            "description": "Whether the rule should be active or not."
          },
          "filters": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/environment_filter"
                },
                {
                  "$ref": "#/components/schemas/level_filter"
                },
                {
                  "$ref": "#/components/schemas/title_filter"
                },
                {
                  "$ref": "#/components/schemas/filename_filter"
                },
                {
                  "$ref": "#/components/schemas/context_filter"
                },
                {
                  "$ref": "#/components/schemas/method_filter"
                },
                {
                  "$ref": "#/components/schemas/framework_filter"
                },
                {
                  "$ref": "#/components/schemas/path_filter"
                },
                {
                  "$ref": "#/components/schemas/path_filter_with_exists"
                },
                {
                  "$ref": "#/components/schemas/unique_occurences_filter"
                }
              ]
            }
          }
        }
      },
      "ReopenedItemRule": {
        "required": [
          "trigger"
        ],
        "type": "object",
        "properties": {
          "trigger": {
            "type": "string",
            "enum": [
              "reopened_item"
            ],
            "description": "An error/message is marked Active by a user."
          },
          "status": {
            "type": "string",
            "enum": [
              "enabled",
              "disabled"
            ],
            "description": "Whether the rule should be active or not."
          },
          "filters": {
            "type": "array",
            "description": "To keep your notifications relevant, you'll want to apply filters to limit when they send messages or create incidents.",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/environment_filter"
                },
                {
                  "$ref": "#/components/schemas/level_filter"
                },
                {
                  "$ref": "#/components/schemas/title_filter"
                },
                {
                  "$ref": "#/components/schemas/filename_filter"
                },
                {
                  "$ref": "#/components/schemas/context_filter"
                },
                {
                  "$ref": "#/components/schemas/method_filter"
                },
                {
                  "$ref": "#/components/schemas/framework_filter"
                },
                {
                  "$ref": "#/components/schemas/path_filter"
                },
                {
                  "$ref": "#/components/schemas/path_filter_with_exists"
                },
                {
                  "$ref": "#/components/schemas/unique_occurences_filter"
                }
              ]
            }
          }
        }
      },
      "OccurrenceRateRule": {
        "required": [
          "trigger"
        ],
        "type": "object",
        "properties": {
          "trigger": {
            "type": "string",
            "enum": [
              "occurrence_rate"
            ],
            "description": "{x} occurrences seen in {y} minutes"
          },
          "status": {
            "type": "string",
            "enum": [
              "enabled",
              "disabled"
            ],
            "description": "Whether the rule should be active or not."
          },
          "filters": {
            "type": "array",
            "description": "To keep your notifications relevant, you'll want to apply filters to limit when they send messages or create incidents.",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/environment_filter"
                },
                {
                  "$ref": "#/components/schemas/level_filter"
                },
                {
                  "$ref": "#/components/schemas/title_filter"
                },
                {
                  "$ref": "#/components/schemas/filename_filter"
                },
                {
                  "$ref": "#/components/schemas/context_filter"
                },
                {
                  "$ref": "#/components/schemas/method_filter"
                },
                {
                  "$ref": "#/components/schemas/framework_filter"
                },
                {
                  "$ref": "#/components/schemas/path_filter"
                },
                {
                  "$ref": "#/components/schemas/path_filter_with_exists"
                },
                {
                  "$ref": "#/components/schemas/unique_occurences_filter"
                },
                {
                  "$ref": "#/components/schemas/rate_filter"
                }
              ]
            }
          }
        }
      },
      "ExpRepeatItemRule": {
        "required": [
          "trigger"
        ],
        "type": "object",
        "properties": {
          "trigger": {
            "type": "string",
            "enum": [
              "exp_repeat_item"
            ],
            "description": "10th, 100th, 1,000th, 10,000th, … occurrence"
          },
          "status": {
            "type": "string",
            "enum": [
              "enabled",
              "disabled"
            ],
            "description": "Whether the rule should be active or not."
          },
          "filters": {
            "type": "array",
            "description": "To keep your notifications relevant, you'll want to apply filters to limit when they send messages or create incidents.",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/environment_filter"
                },
                {
                  "$ref": "#/components/schemas/level_filter"
                },
                {
                  "$ref": "#/components/schemas/title_filter"
                },
                {
                  "$ref": "#/components/schemas/filename_filter"
                },
                {
                  "$ref": "#/components/schemas/context_filter"
                },
                {
                  "$ref": "#/components/schemas/method_filter"
                },
                {
                  "$ref": "#/components/schemas/framework_filter"
                },
                {
                  "$ref": "#/components/schemas/path_filter"
                },
                {
                  "$ref": "#/components/schemas/path_filter_with_exists"
                },
                {
                  "$ref": "#/components/schemas/unique_occurences_filter"
                },
                {
                  "$ref": "#/components/schemas/rate_filter"
                }
              ]
            }
          }
        }
      },
      "path_filter": {
        "type": "object",
        "example": "body.body.trace.exception.message",
        "properties": {
          "path": {
            "type": "string"
          },
          "type": {
            "enum": [
              "path"
            ],
            "type": "string",
            "description": "Allows for filtering based on any data in the JSON payload. To view the JSON structure of your errors, check out the Raw JSON section of any occurrence"
          },
          "value": {
            "type": "string"
          },
          "operation": {
            "enum": [
              "eq",
              "gte",
              "lte",
              "within",
              "nwithin",
              "neq",
              "regex",
              "nregex",
              "startswith"
            ],
            "type": "string"
          }
        },
        "required": [
          "path",
          "type",
          "operation",
          "value"
        ]
      },
      "path_filter_with_exists": {
        "type": "object",
        "example": "body.body.trace.exception.message",
        "properties": {
          "path": {
            "type": "string"
          },
          "type": {
            "enum": [
              "path"
            ],
            "type": "string",
            "description": "Allows for filtering based on any data in the JSON payload. To view the JSON structure of your errors, check out the Raw JSON section of any occurrence"
          },
          "value": {
            "type": "string"
          },
          "operation": {
            "enum": [
              "eq",
              "gte",
              "lte",
              "within",
              "nwithin",
              "neq",
              "regex",
              "nregex",
              "startswith",
              "exists",
              "nexists"
            ],
            "type": "string"
          }
        },
        "required": [
          "path",
          "type",
          "operation"
        ]
      },
      "level_filter": {
        "type": "object",
        "properties": {
          "type": {
            "enum": [
              "level"
            ],
            "type": "string",
            "description": "Item Level"
          },
          "operation": {
            "type": "string",
            "enum": [
              "eq",
              "gte"
            ]
          },
          "value": {
            "type": "string",
            "enum": [
              "debug",
              "info",
              "warning",
              "error",
              "critical"
            ]
          }
        },
        "required": [
          "type",
          "operation",
          "value"
        ]
      },
      "title_filter": {
        "type": "object",
        "properties": {
          "type": {
            "enum": [
              "title"
            ],
            "type": "string",
            "description": "Item Title"
          },
          "operation": {
            "type": "string",
            "enum": [
              "within",
              "nwithin",
              "regex",
              "nregex"
            ]
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "type",
          "operation",
          "value"
        ]
      },
      "filename_filter": {
        "type": "object",
        "properties": {
          "type": {
            "enum": [
              "filename"
            ],
            "type": "string",
            "description": "Matches the name of any file in the stack trace"
          },
          "operation": {
            "type": "string",
            "enum": [
              "within",
              "nwithin",
              "regex",
              "nregex"
            ]
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "type",
          "operation",
          "value"
        ]
      },
      "context_filter": {
        "type": "object",
        "properties": {
          "type": {
            "enum": [
              "context"
            ],
            "type": "string",
            "description": "Matches context value (if included in payload)"
          },
          "operation": {
            "type": "string",
            "enum": [
              "startswith",
              "eq",
              "neq"
            ]
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "type",
          "operation",
          "value"
        ]
      },
      "method_filter": {
        "type": "object",
        "properties": {
          "type": {
            "enum": [
              "method"
            ],
            "type": "string",
            "description": "Matches any method in the stack trace"
          },
          "operation": {
            "type": "string",
            "enum": [
              "within",
              "nwithin",
              "regex",
              "nregex"
            ]
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "type",
          "operation",
          "value"
        ]
      },
      "framework_filter": {
        "type": "object",
        "properties": {
          "type": {
            "enum": [
              "framework"
            ],
            "type": "string",
            "description": "Platform/language of the item"
          },
          "operation": {
            "type": "string",
            "enum": [
              "eq"
            ]
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "type",
          "operation",
          "value"
        ]
      },
      "unique_occurences_filter": {
        "type": "object",
        "properties": {
          "type": {
            "enum": [
              "unique_occurrences"
            ],
            "type": "string",
            "description": "Number of unique IPs affected for the item"
          },
          "operation": {
            "type": "string",
            "enum": [
              "gte"
            ]
          },
          "value": {
            "type": "number"
          }
        },
        "required": [
          "type",
          "operation",
          "value"
        ]
      },
      "comment_filter": {
        "type": "object",
        "properties": {
          "type": {
            "enum": [
              "comment"
            ],
            "type": "string",
            "description": "Body of an item comment"
          },
          "operation": {
            "type": "string",
            "enum": [
              "within"
            ]
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "type",
          "operation",
          "value"
        ]
      },
      "rate_filter": {
        "type": "object",
        "properties": {
          "type": {
            "enum": [
              "rate"
            ],
            "type": "string",
            "description": "Rate of occurrences of an item"
          },
          "period": {
            "type": "number",
            "description": "Number of seconds"
          },
          "count": {
            "type": "number"
          }
        },
        "required": [
          "type",
          "period",
          "count"
        ]
      },
      "environment_filter": {
        "type": "object",
        "properties": {
          "type": {
            "enum": [
              "environment"
            ],
            "type": "string",
            "description": "Item Environment"
          },
          "operation": {
            "type": "string",
            "enum": [
              "eq",
              "neq"
            ]
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "type",
          "operation",
          "value"
        ]
      },
      "OptionalProjectId": {
        "type": "integer",
        "description": "Project ID, required when using an Account Access Token with this endpoint."
      },
      "OptionalProjectIdObject": {
        "type": "object",
        "properties": {
          "project_id": {
            "$ref": "#/components/schemas/OptionalProjectId"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 98,
      "1": 222,
      "2": 158,
      "3": 27,
      "4": 99,
      "5": 22,
      "6": 195,
      "7": 4,
      "8": 3,
      "9": 77,
      "10": 0,
      "11": 106
    }
  }
}
````