> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flashduty.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update an error ingestion rule

> Update the name, description, or filters of an error ingestion rule.

## Restrictions

| Aspect      | Value                                                       |
| ----------- | ----------------------------------------------------------- |
| Rate limits | **300 requests/minute**; **20 requests/second** per account |
| Permissions | None — any valid `app_key` can call this operation          |

## Usage

* Only fields present in the request are changed; omitted fields keep their current value.
* Calling update with no fields set is a no-op that still returns success.
* Returns `ResourceNotFound` if `rule_id` doesn't exist under `application_id`.
* Every call is recorded in the account audit log. Don't put secrets in request fields.


## OpenAPI

````yaml /api-reference/rum.openapi.en.json post /rum/error-ingestion/rules/update
openapi: 3.1.0
info:
  title: Flashduty Open API
  description: >-
    Public HTTP API for the Flashduty incident management platform — incidents,
    notification templates, channels, schedules, monitors, RUM, and platform
    administration. Every operation is authenticated with an `app_key` query
    parameter issued from the Flashduty console under Account → APP Keys.
    Responses follow a uniform envelope: `{ request_id, data }` on success, `{
    request_id, error }` on failure.
  version: 1.0.0
servers:
  - url: https://api.flashcat.cloud
    description: Flashduty Open API
security:
  - AppKeyAuth: []
tags:
  - name: RUM/Applications
    description: Manage Real User Monitoring (RUM) applications.
  - name: RUM/Data query
    description: Run RUM analytics queries over event data.
  - name: RUM/Issues
    description: Query and manage RUM error tracking issues and preset severity rules.
  - name: RUM/Facets
    description: >-
      Query RUM facet fields and their value distributions for building
      analytics filters.
  - name: RUM/Sourcemaps
    description: >-
      Manage and query RUM sourcemap files for browser, Android, and iOS error
      symbolication.
  - name: RUM/Session replay
    description: Retrieve session replay metadata and recorded segments for RUM sessions.
  - name: RUM/Error ingestion rules
    description: >-
      Configure and inspect the rules that decide which RUM errors get ingested
      and stored for an application, including their edit history.
  - name: RUM/Issue preset severity rules
    description: >-
      Manage per-application rules that assign a severity to matching front-end
      errors, plus their evaluation order and change history.
  - name: RUM/Resources
    description: Query the RUM resource record and current usage for the account.
paths:
  /rum/error-ingestion/rules/update:
    post:
      tags:
        - RUM/Error ingestion rules
      summary: Update an error ingestion rule
      description: Update the name, description, or filters of an error ingestion rule.
      operationId: rum-error-ingestion-rules-update
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RumErrorIngestionUpdateRequest'
            example:
              application_id: WoyQQ3BohkdtPivubEvE8o
              rule_id: 9spXEVoMeZWujjz25yrgTe
              description: Now also excludes staging traffic.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/SuccessEnvelope'
                  - type: object
                    properties:
                      data:
                        $ref: '#/components/schemas/RumErrorIngestionEmptyResponse'
              example:
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
                data: {}
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/ServerError'
components:
  schemas:
    RumErrorIngestionUpdateRequest:
      type: object
      description: >-
        Partial update to an existing error ingestion rule. Omitted fields are
        left unchanged.
      required:
        - application_id
        - rule_id
      properties:
        application_id:
          type: string
          description: >-
            RUM application ID. Get application IDs via `POST
            /rum/application/list`.
        rule_id:
          type: string
          description: >-
            Rule ID to update. Get rule IDs via `POST
            /rum/error-ingestion/rules/list`.
        rule_name:
          type:
            - string
            - 'null'
          description: New rule name, 1-128 characters. Omit to leave unchanged.
          minLength: 1
          maxLength: 128
        description:
          type:
            - string
            - 'null'
          description: New rule description, up to 512 characters. Omit to leave unchanged.
          maxLength: 512
        filters:
          $ref: '#/components/schemas/RumErrorIngestionOrFilters'
          description: New filter conditions. Omit to leave unchanged.
    SuccessEnvelope:
      type: object
      description: >-
        Success response envelope. On every 2xx response, `request_id`
        identifies the call (also mirrored in the `Flashcat-Request-Id` header)
        and `data` holds the endpoint-specific payload. Failure responses use a
        different shape — see `ErrorResponse`.
      properties:
        request_id:
          type: string
          description: >-
            Unique ID for this request. Mirrored in the Flashcat-Request-Id
            response header. Include it when reporting issues.
          example: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
        data:
          description: Endpoint-specific payload. See each operation's 200 response schema.
      required:
        - request_id
        - data
    RumErrorIngestionEmptyResponse:
      type: object
      description: Empty response body on success.
      properties: {}
    RumErrorIngestionOrFilters:
      type: array
      description: >-
        OR-of-ANDs filter set. The outer array is OR — an error matches the rule
        if it matches at least one inner AND-group.
      items:
        type: array
        description: >-
          AND-group. The group only matches when every condition inside it
          matches.
        items:
          $ref: '#/components/schemas/RumErrorIngestionFilterCondition'
    ErrorResponse:
      type: object
      description: Response envelope for errors. `error` is required; `data` is absent.
      properties:
        request_id:
          type: string
          example: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
          description: >-
            Unique trace ID of this request; include it when reporting issues so
            logs can be located.
        error:
          $ref: '#/components/schemas/DutyError'
      required:
        - request_id
        - error
    RumErrorIngestionFilterCondition:
      type: object
      description: A single filter condition matched against one error field.
      required:
        - key
        - oper
        - vals
      properties:
        key:
          type: string
          description: >-
            Field key. One of `error.usr_id`, `error.usr_email`,
            `error.error_type`, `error.error_message`, `error.error_stack`,
            `error.view_url`, `error.env`, `error.version`, `error.service`,
            `error.browser_name`, `error.browser_version`, `error.fingerprint`,
            `error.is_crash`, or a `context.`-prefixed custom context path (up
            to 3 levels deep).
        oper:
          type: string
          enum:
            - IN
            - NOTIN
          description: >-
            Match mode: `IN` matches when the field value matches any entry in
            `vals`; `NOTIN` matches when it matches none.
        vals:
          type: array
          description: >-
            Values to match against, at least 1 entry. Each entry is an exact
            string, or a special pattern using wildcards (`*`/`?`), a regexp
            wrapped in `/`, a `cidr:`-prefixed CIDR match, or a
            `num:lt|le|gt|ge:`-prefixed numeric comparison.
          minItems: 1
          items:
            type: string
    DutyError:
      type: object
      description: >-
        Error payload inside the response envelope. Present only on non-2xx
        responses.
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
          description: >-
            Human-readable error message, localized by the caller's
            Accept-Language. May contain field names, IDs, or other context from
            the failing request.
          example: The specified parameter template_id is not valid.
      required:
        - code
        - message
    ErrorCode:
      type: string
      description: >-
        Flashduty error code enum. Every failed API response sets `error.code`
        to one of these stable wire strings. HTTP status is informational — the
        authoritative signal is the enum value.


        | Code | HTTP | Meaning |

        |---|---|---|

        | `OK` | 200 | Reserved — not returned on real errors. |

        | `InvalidParameter` | 400 | A required parameter is missing or failed
        validation. |

        | `BadRequest` | 400 | Generic 400 used when no more specific code fits.
        |

        | `InvalidContentType` | 400 | The `Content-Type` header is not
        `application/json`. |

        | `ResourceNotFound` | 400 | The referenced resource does not exist.
        Note: returned as HTTP 400, not 404 (historical choice). |

        | `NoLicense` | 400 | The feature is license-gated and no active license
        was found. |

        | `ReferenceExist` | 400 | Deletion blocked — other entities still
        reference this resource. |

        | `Unauthorized` | 401 | `app_key` is missing, invalid, or expired. |

        | `BalanceNotEnough` | 402 | Billing-gated operation with insufficient
        account balance. |

        | `AccessDenied` | 403 | Authenticated but lacking the permission
        required for this operation. |

        | `RouteNotFound` | 404 | The request URL path is not a known route. |

        | `MethodNotAllowed` | 405 | The HTTP method is not allowed on this
        otherwise-known path. |

        | `UndonedOrderExist` | 409 | An outstanding billing order blocks this
        new one. Wait and retry. |

        | `RequestLocked` | 423 | Operation temporarily locked due to repeated
        failures. |

        | `EntityTooLarge` | 413 | Request body exceeds the configured max size.
        |

        | `RequestTooFrequently` | 429 | Rate limit hit — API-global,
        per-account, or per-integration. |

        | `RequestVerifyRequired` | 428 | Second-factor verification required
        but not supplied. |

        | `DangerousOperation` | 428 | High-risk operation requires MFA
        verification. |

        | `InternalError` | 500 | Unhandled server-side error. Include
        `request_id` in the bug report. |

        | `ServiceUnavailable` | 503 | A backend dependency is unavailable. Try
        again later. |
      enum:
        - OK
        - InvalidParameter
        - BadRequest
        - InvalidContentType
        - ResourceNotFound
        - NoLicense
        - ReferenceExist
        - Unauthorized
        - BalanceNotEnough
        - AccessDenied
        - RouteNotFound
        - MethodNotAllowed
        - UndonedOrderExist
        - RequestLocked
        - EntityTooLarge
        - RequestTooFrequently
        - RequestVerifyRequired
        - DangerousOperation
        - InternalError
        - ServiceUnavailable
      x-enumDescriptions:
        OK: Reserved — not returned on real errors.
        InvalidParameter: A required parameter is missing or failed validation.
        BadRequest: Generic 400 used when no more specific code fits.
        InvalidContentType: The `Content-Type` header is not `application/json`.
        ResourceNotFound: >-
          The referenced resource does not exist. Note: returned as HTTP 400,
          not 404 (historical choice).
        NoLicense: The feature is license-gated and no active license was found.
        ReferenceExist: Deletion blocked — other entities still reference this resource.
        Unauthorized: '`app_key` is missing, invalid, or expired.'
        BalanceNotEnough: Billing-gated operation with insufficient account balance.
        AccessDenied: Authenticated but lacking the permission required for this operation.
        RouteNotFound: The request URL path is not a known route.
        MethodNotAllowed: The HTTP method is not allowed on this otherwise-known path.
        UndonedOrderExist: An outstanding billing order blocks this new one. Wait and retry.
        RequestLocked: Operation temporarily locked due to repeated failures.
        EntityTooLarge: Request body exceeds the configured max size.
        RequestTooFrequently: Rate limit hit — API-global, per-account, or per-integration.
        RequestVerifyRequired: Second-factor verification required but not supplied.
        DangerousOperation: High-risk operation requires MFA verification.
        InternalError: Unhandled server-side error. Include `request_id` in the bug report.
        ServiceUnavailable: A backend dependency is unavailable. Try again later.
      example: InvalidParameter
  responses:
    BadRequest:
      description: Invalid request — usually a missing or malformed parameter.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            missingParameter:
              value:
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
                error:
                  code: InvalidParameter
                  message: The specified parameter is not valid.
    Unauthorized:
      description: Missing or invalid app_key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            missingAppKey:
              value:
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
                error:
                  code: Unauthorized
                  message: You are unauthorized.
    TooManyRequests:
      description: >-
        Rate limit hit. Either the global API limit, a per-account limit, or a
        per-integration limit.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            rateLimited:
              value:
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
                error:
                  code: RequestTooFrequently
                  message: Request too frequently.
    ServerError:
      description: Unexpected server-side error. Include the request_id when reporting.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            internal:
              value:
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
                error:
                  code: InternalError
                  message: >-
                    We encountered an internal error, and it has been reported.
                    Please try again later.
  securitySchemes:
    AppKeyAuth:
      type: apiKey
      in: query
      name: app_key
      description: >-
        App key issued from the Flashduty console under Account → APP Keys.
        Required on every public API call. Keep it secret — it grants the same
        access as the owning account.

````