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

# Ignore an error

> Mark an error group as ignored. Provide a `duration` to ignore it for a fixed window, and/or thresholds that re-surface the error when exceeded. Send a JSON body (use `{}` to ignore indefinitely).




## OpenAPI

````yaml v3-openapi POST /api/v1/errors/{errorId}/ignore
openapi: 3.1.0
info:
  title: Trigger.dev v3 REST API
  description: >-
    The REST API lets you trigger and manage runs on Trigger.dev. You can
    trigger a run, get the status of a run, and get the results of a run. 
  version: 2024-04
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://api.trigger.dev
    description: Trigger.dev API
security: []
paths:
  /api/v1/errors/{errorId}/ignore:
    parameters:
      - $ref: '#/components/parameters/errorId'
    post:
      tags:
        - errors
      summary: Ignore an error
      description: >
        Mark an error group as ignored. Provide a `duration` to ignore it for a
        fixed window, and/or thresholds that re-surface the error when exceeded.
        Send a JSON body (use `{}` to ignore indefinitely).
      operationId: ignore_error_v1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                duration:
                  type: integer
                  description: How long to ignore the error for, in milliseconds.
                  example: 86400000
                occurrenceRate:
                  type: number
                  description: >-
                    Re-surface the error if its occurrence rate exceeds this
                    many occurrences per minute.
                totalOccurrences:
                  type: integer
                  description: >-
                    Re-surface the error once it accrues this many new
                    occurrences after being ignored.
                reason:
                  type: string
                  description: An optional human-readable reason for ignoring the error.
      responses:
        '200':
          description: Successful request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorObject'
        '401':
          description: Unauthorized request
        '404':
          description: Error not found
      security:
        - secretKey: []
      x-codeSamples:
        - lang: curl
          label: Ignore an error
          source: >-
            curl -X POST
            "https://api.trigger.dev/api/v1/errors/error_8f3b2a1c9d4e5f60/ignore"
            \
              -H "Authorization: Bearer $TRIGGER_SECRET_KEY" \
              -H "Content-Type: application/json" \
              -d '{"duration": 86400000, "reason": "Known flaky dependency"}'
components:
  parameters:
    errorId:
      in: path
      name: errorId
      required: true
      schema:
        type: string
      description: The ID of an error group, starts with `error_`.
      example: error_8f3b2a1c9d4e5f60
  schemas:
    ErrorObject:
      type: object
      required:
        - id
        - fingerprint
        - taskIdentifier
        - errorType
        - errorMessage
        - status
        - count
        - firstSeen
        - lastSeen
        - affectedVersions
      properties:
        id:
          type: string
          description: The unique ID of the error group, prefixed with `error_`
          example: error_8f3b2a1c9d4e5f60
        fingerprint:
          type: string
          description: The raw fingerprint the error is grouped by
        taskIdentifier:
          type: string
          description: The identifier of the task the error belongs to
        errorType:
          type: string
          description: The error type or name (e.g. `TypeError`)
        errorMessage:
          type: string
          description: The normalized error message
        count:
          type: integer
          description: The total number of occurrences of this error group
        firstSeen:
          type: string
          format: date-time
        lastSeen:
          type: string
          format: date-time
        affectedVersions:
          type: array
          items:
            type: string
          description: >-
            The most recent worker versions the error has occurred in (up to
            five)
        status:
          type: string
          enum:
            - unresolved
            - resolved
            - ignored
        resolvedAt:
          type: string
          format: date-time
          nullable: true
        resolvedInVersion:
          type: string
          nullable: true
        resolvedBy:
          type: string
          nullable: true
          description: The ID of the user who resolved the error, when attributable
        ignoredAt:
          type: string
          format: date-time
          nullable: true
        ignoredUntil:
          type: string
          format: date-time
          nullable: true
        ignoredReason:
          type: string
          nullable: true
        ignoredByUserId:
          type: string
          nullable: true
        ignoredUntilOccurrenceRate:
          type: number
          nullable: true
        ignoredUntilTotalOccurrences:
          type: integer
          nullable: true
  securitySchemes:
    secretKey:
      type: http
      scheme: bearer
      description: >
        Use your project-specific Secret API key. Will start with `tr_dev_`,
        `tr_prod`, `tr_stg`, etc.


        You can find your Secret API key in the API Keys section of your
        Trigger.dev project dashboard.


        Our TypeScript SDK will default to using the value of the
        `TRIGGER_SECRET_KEY` environment variable if it is set. If you are using
        the SDK in a different environment, you can set the key using the
        `configure` function.


        ```typescript

        import { configure } from "@trigger.dev/sdk";


        configure({ accessToken: "tr_dev_1234" });

        ```

````