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

# Failed checks — from an inspection item or a work order task — with the corrective work order each one raised.



## OpenAPI

````yaml /api-reference/openapi.json get /inspection_failures
openapi: 3.0.0
info:
  description: ''
  title: >-
    The only schema PostgREST exposes (ADR-014). Reads are security_invoker
    views; writes are SECURITY DEFINER functions. Rebuilt wholesale on every
    deploy — it holds no data.
  version: 12.2.3
servers:
  - url: https://app.assetinfinity.ai/api
security: []
tags:
  - name: Signing in
  - name: Profile
  - name: Assets
  - name: Asset lifecycle
  - name: Work lifecycle
  - name: Maintenance
  - name: Inventory
  - name: Inventory detail
  - name: Procurement
  - name: Contracts
  - name: Workforce
  - name: Capacity
  - name: Dispatch
  - name: Routing
  - name: Tools
  - name: Inspections
  - name: Verification
  - name: Reliability
  - name: Parts demand
  - name: Sensors and meters
  - name: Map
  - name: Floor plans
  - name: Labels
  - name: Lost and found
  - name: Root cause analysis
  - name: Reports
  - name: Audit center
  - name: Activity
  - name: Notifications
  - name: Channels
  - name: Search
  - name: Copilot
  - name: Import
  - name: Files
  - name: Sync
  - name: Support
  - name: Admin
  - name: Access
  - name: Lookups
  - name: Read models
  - name: Branding
  - name: Custom fields
  - name: Form studio
  - name: Workflows
  - name: Workflow studio
  - name: Rules
  - name: Statuses and transitions
  - name: Currencies and locales
  - name: Work configuration
  - name: Asset configuration
  - name: Inventory configuration
  - name: Tool configuration
  - name: Workforce configuration
  - name: Vendor and contract configuration
  - name: Document configuration
  - name: Inspection configuration
  - name: Sites, locations and the organisation
  - name: Platform
  - name: Self verification
  - name: Setup
  - name: Tools on a job, and who has them out
  - name: Vendors and contracts
  - name: Work order execution
  - name: Workforce detail
externalDocs:
  description: PostgREST Documentation
  url: https://postgrest.org/en/v12/references/api.html
paths:
  /inspection_failures:
    get:
      tags:
        - Inspections
      summary: >-
        Failed checks — from an inspection item or a work order task — with the
        corrective work order each one raised.
      parameters:
        - $ref: '#/components/parameters/rowFilter.inspection_failures.id'
        - $ref: '#/components/parameters/rowFilter.inspection_failures.origin'
        - $ref: '#/components/parameters/rowFilter.inspection_failures.inspection_id'
        - $ref: >-
            #/components/parameters/rowFilter.inspection_failures.inspection_number
        - $ref: >-
            #/components/parameters/rowFilter.inspection_failures.inspection_item_id
        - $ref: >-
            #/components/parameters/rowFilter.inspection_failures.work_order_task_id
        - $ref: >-
            #/components/parameters/rowFilter.inspection_failures.found_in_work_order_id
        - $ref: >-
            #/components/parameters/rowFilter.inspection_failures.found_in_work_order_number
        - $ref: '#/components/parameters/rowFilter.inspection_failures.prompt'
        - $ref: '#/components/parameters/rowFilter.inspection_failures.asset_id'
        - $ref: '#/components/parameters/rowFilter.inspection_failures.asset_number'
        - $ref: '#/components/parameters/rowFilter.inspection_failures.asset_name'
        - $ref: '#/components/parameters/rowFilter.inspection_failures.severity'
        - $ref: '#/components/parameters/rowFilter.inspection_failures.is_critical'
        - $ref: '#/components/parameters/rowFilter.inspection_failures.description'
        - $ref: '#/components/parameters/rowFilter.inspection_failures.recorded_value'
        - $ref: '#/components/parameters/rowFilter.inspection_failures.expected_value'
        - $ref: '#/components/parameters/rowFilter.inspection_failures.status'
        - $ref: '#/components/parameters/rowFilter.inspection_failures.work_order_id'
        - $ref: >-
            #/components/parameters/rowFilter.inspection_failures.work_order_number
        - $ref: '#/components/parameters/rowFilter.inspection_failures.resolved_at'
        - $ref: >-
            #/components/parameters/rowFilter.inspection_failures.resolution_notes
        - $ref: '#/components/parameters/rowFilter.inspection_failures.waiver_reason'
        - $ref: '#/components/parameters/rowFilter.inspection_failures.created_at'
        - $ref: '#/components/parameters/rowFilter.inspection_failures.row_version'
        - $ref: '#/components/parameters/select'
        - $ref: '#/components/parameters/order'
        - $ref: '#/components/parameters/range'
        - $ref: '#/components/parameters/rangeUnit'
        - $ref: '#/components/parameters/offset'
        - $ref: '#/components/parameters/limit'
        - $ref: '#/components/parameters/preferCount'
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/inspection_failures'
                type: array
            application/vnd.pgrst.object+json:
              schema:
                items:
                  $ref: '#/components/schemas/inspection_failures'
                type: array
            application/vnd.pgrst.object+json;nulls=stripped:
              schema:
                items:
                  $ref: '#/components/schemas/inspection_failures'
                type: array
            text/csv:
              schema:
                items:
                  $ref: '#/components/schemas/inspection_failures'
                type: array
          description: OK
        '206':
          description: Partial Content
components:
  parameters:
    rowFilter.inspection_failures.id:
      in: query
      name: id
      required: false
      schema:
        type: string
    rowFilter.inspection_failures.origin:
      in: query
      name: origin
      required: false
      schema:
        type: string
    rowFilter.inspection_failures.inspection_id:
      in: query
      name: inspection_id
      required: false
      schema:
        type: string
    rowFilter.inspection_failures.inspection_number:
      in: query
      name: inspection_number
      required: false
      schema:
        type: string
    rowFilter.inspection_failures.inspection_item_id:
      in: query
      name: inspection_item_id
      required: false
      schema:
        type: string
    rowFilter.inspection_failures.work_order_task_id:
      in: query
      name: work_order_task_id
      required: false
      schema:
        type: string
    rowFilter.inspection_failures.found_in_work_order_id:
      in: query
      name: found_in_work_order_id
      required: false
      schema:
        type: string
    rowFilter.inspection_failures.found_in_work_order_number:
      in: query
      name: found_in_work_order_number
      required: false
      schema:
        type: string
    rowFilter.inspection_failures.prompt:
      in: query
      name: prompt
      required: false
      schema:
        type: string
    rowFilter.inspection_failures.asset_id:
      in: query
      name: asset_id
      required: false
      schema:
        type: string
    rowFilter.inspection_failures.asset_number:
      in: query
      name: asset_number
      required: false
      schema:
        type: string
    rowFilter.inspection_failures.asset_name:
      in: query
      name: asset_name
      required: false
      schema:
        type: string
    rowFilter.inspection_failures.severity:
      in: query
      name: severity
      required: false
      schema:
        type: string
    rowFilter.inspection_failures.is_critical:
      in: query
      name: is_critical
      required: false
      schema:
        type: string
    rowFilter.inspection_failures.description:
      in: query
      name: description
      required: false
      schema:
        type: string
    rowFilter.inspection_failures.recorded_value:
      in: query
      name: recorded_value
      required: false
      schema:
        type: string
    rowFilter.inspection_failures.expected_value:
      in: query
      name: expected_value
      required: false
      schema:
        type: string
    rowFilter.inspection_failures.status:
      in: query
      name: status
      required: false
      schema:
        type: string
    rowFilter.inspection_failures.work_order_id:
      in: query
      name: work_order_id
      required: false
      schema:
        type: string
    rowFilter.inspection_failures.work_order_number:
      in: query
      name: work_order_number
      required: false
      schema:
        type: string
    rowFilter.inspection_failures.resolved_at:
      in: query
      name: resolved_at
      required: false
      schema:
        type: string
    rowFilter.inspection_failures.resolution_notes:
      in: query
      name: resolution_notes
      required: false
      schema:
        type: string
    rowFilter.inspection_failures.waiver_reason:
      in: query
      name: waiver_reason
      required: false
      schema:
        type: string
    rowFilter.inspection_failures.created_at:
      in: query
      name: created_at
      required: false
      schema:
        type: string
    rowFilter.inspection_failures.row_version:
      in: query
      name: row_version
      required: false
      schema:
        type: string
    select:
      description: Filtering Columns
      in: query
      name: select
      required: false
      schema:
        type: string
    order:
      description: Ordering
      in: query
      name: order
      required: false
      schema:
        type: string
    range:
      description: Limiting and Pagination
      in: header
      name: Range
      required: false
      schema:
        type: string
    rangeUnit:
      description: Limiting and Pagination
      in: header
      name: Range-Unit
      required: false
      schema:
        default: items
        type: string
    offset:
      description: Limiting and Pagination
      in: query
      name: offset
      required: false
      schema:
        type: string
    limit:
      description: Limiting and Pagination
      in: query
      name: limit
      required: false
      schema:
        type: string
    preferCount:
      description: Preference
      in: header
      name: Prefer
      required: false
      schema:
        enum:
          - count=none
        type: string
  schemas:
    inspection_failures:
      description: >-
        Failed checks — from an inspection item or a work order task — with the
        corrective work order each one raised.
      properties:
        asset_id:
          description: >-
            Note:

            This is a Foreign Key to `asset_contracts.asset_id`.<fk
            table='asset_contracts' column='asset_id'/>
          format: uuid
          type: string
        asset_name:
          format: character varying
          maxLength: 250
          type: string
        asset_number:
          format: character varying
          maxLength: 80
          type: string
        created_at:
          format: timestamp with time zone
          type: string
        description:
          format: text
          type: string
        expected_value:
          format: character varying
          maxLength: 250
          type: string
        found_in_work_order_id:
          description: |-
            Note:
            This is a Primary Key.<pk/>
          format: uuid
          type: string
        found_in_work_order_number:
          format: character varying
          maxLength: 60
          type: string
        id:
          description: |-
            Note:
            This is a Primary Key.<pk/>
          format: uuid
          type: string
        inspection_id:
          description: >-
            Note:

            This is a Foreign Key to `inspections.id`.<fk table='inspections'
            column='id'/>
          format: uuid
          type: string
        inspection_item_id:
          description: >-
            Note:

            This is a Foreign Key to `inspection_items.id`.<fk
            table='inspection_items' column='id'/>
          format: uuid
          type: string
        inspection_number:
          format: character varying
          maxLength: 60
          type: string
        is_critical:
          format: boolean
          type: boolean
        origin:
          format: text
          type: string
        prompt:
          format: text
          type: string
        recorded_value:
          format: character varying
          maxLength: 250
          type: string
        resolution_notes:
          format: text
          type: string
        resolved_at:
          format: timestamp with time zone
          type: string
        row_version:
          format: bigint
          type: integer
        severity:
          format: character varying
          maxLength: 20
          type: string
        status:
          format: character varying
          maxLength: 20
          type: string
        waiver_reason:
          format: text
          type: string
        work_order_id:
          description: >-
            Note:

            This is a Foreign Key to
            `inspection_failures.found_in_work_order_id`.<fk
            table='inspection_failures' column='found_in_work_order_id'/>
          format: uuid
          type: string
        work_order_number:
          format: character varying
          maxLength: 60
          type: string
        work_order_task_id:
          description: >-
            Note:

            This is a Foreign Key to `work_order_tasks.id`.<fk
            table='work_order_tasks' column='id'/>
          format: uuid
          type: string
      type: object

````

## Related topics

- [Inspection settings](/config/inspections.md)
- [Inspections](/maintenance/inspections.md)
- [Inside a work order](/work/work-order-detail.md)
- [Core concepts](/core-concepts.md)
- [Work settings](/config/work.md)
