> ## 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.

# The fitted register with the assembly drawn on it: the row each component hangs off, how far

> down it sits, and the machine it belongs to.

One row per record, like the register it reads. Nest by parent_component_id — depth cannot say what
to nest under. A removed row is reported and not descended into, because what came off a
sub-assembly that has itself come off is fitted to nothing here.

For one asset's assembly use api.asset_components_under. WITH RECURSIVE is an optimisation fence, so
filtering this view by root_asset_id walks every tree in the tenant before discarding all but one —
32ms against 3.2ms, measured on twenty thousand component rows.



## OpenAPI

````yaml /api-reference/openapi.json get /asset_component_tree
openapi: 3.0.0
info:
  description: ''
  title: >-
    The only schema PostgREST exposes. 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: 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: Amendments
  - name: Asset clone
  - name: Asset components
  - name: Asset register
  - name: Asset transfer
  - name: Audit feed
  - name: Billing
  - name: Bookings
  - name: Budgets
  - name: Bulk jobs
  - name: Calibration history
  - name: Capex plans
  - name: Conversations
  - name: Costing
  - name: Currency
  - name: Dashboards
  - name: Directory sync
  - name: Document control
  - name: Document folders
  - name: Document tree
  - name: Documents
  - name: Energy
  - name: Extracts
  - name: Features
  - name: Feeds
  - name: File exchange
  - name: Filing exceptions
  - name: Finance
  - name: Inbound mail
  - name: Keys
  - name: Knowledge
  - name: Licence
  - name: List views
  - name: Locations
  - name: Mapping
  - name: Mcp
  - name: Mcp oauth
  - name: Mfa
  - name: Numbering
  - name: Permits
  - name: Readers
  - name: Reference
  - name: Reference columns
  - name: Reference entry
  - name: Release
  - name: Scim
  - name: Security streams
  - name: Self verification
  - name: Setup
  - name: Shutdown
  - name: Sso
  - name: Telegram
  - name: Tenant switch
  - name: The caller's own work
  - name: The checklist library
  - name: Tools on a job, and who has them out
  - name: Tray
  - name: Vendor spend forecast
  - name: Vendors and contracts
  - name: Visitors
  - name: Work order execution
  - name: Work sequencing
  - name: Workforce detail
externalDocs:
  description: PostgREST Documentation
  url: https://postgrest.org/en/v12/references/api.html
paths:
  /asset_component_tree:
    get:
      tags:
        - Asset components
      summary: >-
        The fitted register with the assembly drawn on it: the row each
        component hangs off, how far
      description: >-
        down it sits, and the machine it belongs to.


        One row per record, like the register it reads. Nest by
        parent_component_id — depth cannot say what

        to nest under. A removed row is reported and not descended into, because
        what came off a

        sub-assembly that has itself come off is fitted to nothing here.


        For one asset's assembly use api.asset_components_under. WITH RECURSIVE
        is an optimisation fence, so

        filtering this view by root_asset_id walks every tree in the tenant
        before discarding all but one —

        32ms against 3.2ms, measured on twenty thousand component rows.
      parameters:
        - $ref: '#/components/parameters/rowFilter.asset_component_tree.root_asset_id'
        - $ref: >-
            #/components/parameters/rowFilter.asset_component_tree.parent_component_id
        - $ref: '#/components/parameters/rowFilter.asset_component_tree.depth'
        - $ref: '#/components/parameters/rowFilter.asset_component_tree.component_id'
        - $ref: '#/components/parameters/rowFilter.asset_component_tree.asset_id'
        - $ref: '#/components/parameters/rowFilter.asset_component_tree.asset_number'
        - $ref: '#/components/parameters/rowFilter.asset_component_tree.asset_name'
        - $ref: '#/components/parameters/rowFilter.asset_component_tree.name'
        - $ref: >-
            #/components/parameters/rowFilter.asset_component_tree.position_label
        - $ref: '#/components/parameters/rowFilter.asset_component_tree.serial_number'
        - $ref: >-
            #/components/parameters/rowFilter.asset_component_tree.component_asset_id
        - $ref: >-
            #/components/parameters/rowFilter.asset_component_tree.component_asset_number
        - $ref: >-
            #/components/parameters/rowFilter.asset_component_tree.component_asset_name
        - $ref: >-
            #/components/parameters/rowFilter.asset_component_tree.component_status
        - $ref: >-
            #/components/parameters/rowFilter.asset_component_tree.component_status_category
        - $ref: >-
            #/components/parameters/rowFilter.asset_component_tree.component_health_score
        - $ref: '#/components/parameters/rowFilter.asset_component_tree.part_id'
        - $ref: '#/components/parameters/rowFilter.asset_component_tree.part_number'
        - $ref: '#/components/parameters/rowFilter.asset_component_tree.part_name'
        - $ref: '#/components/parameters/rowFilter.asset_component_tree.installed_at'
        - $ref: >-
            #/components/parameters/rowFilter.asset_component_tree.installed_work_order_id
        - $ref: >-
            #/components/parameters/rowFilter.asset_component_tree.installed_work_order_number
        - $ref: '#/components/parameters/rowFilter.asset_component_tree.removed_at'
        - $ref: >-
            #/components/parameters/rowFilter.asset_component_tree.removed_work_order_id
        - $ref: >-
            #/components/parameters/rowFilter.asset_component_tree.removed_work_order_number
        - $ref: >-
            #/components/parameters/rowFilter.asset_component_tree.removal_reason
        - $ref: '#/components/parameters/rowFilter.asset_component_tree.is_fitted'
        - $ref: '#/components/parameters/rowFilter.asset_component_tree.days_fitted'
        - $ref: >-
            #/components/parameters/rowFilter.asset_component_tree.removals_at_position
        - $ref: '#/components/parameters/rowFilter.asset_component_tree.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/asset_component_tree'
                type: array
            application/vnd.pgrst.object+json:
              schema:
                items:
                  $ref: '#/components/schemas/asset_component_tree'
                type: array
            application/vnd.pgrst.object+json;nulls=stripped:
              schema:
                items:
                  $ref: '#/components/schemas/asset_component_tree'
                type: array
            text/csv:
              schema:
                items:
                  $ref: '#/components/schemas/asset_component_tree'
                type: array
          description: OK
        '206':
          description: Partial Content
components:
  parameters:
    rowFilter.asset_component_tree.root_asset_id:
      in: query
      name: root_asset_id
      required: false
      schema:
        type: string
    rowFilter.asset_component_tree.parent_component_id:
      in: query
      name: parent_component_id
      required: false
      schema:
        type: string
    rowFilter.asset_component_tree.depth:
      in: query
      name: depth
      required: false
      schema:
        type: string
    rowFilter.asset_component_tree.component_id:
      in: query
      name: component_id
      required: false
      schema:
        type: string
    rowFilter.asset_component_tree.asset_id:
      in: query
      name: asset_id
      required: false
      schema:
        type: string
    rowFilter.asset_component_tree.asset_number:
      in: query
      name: asset_number
      required: false
      schema:
        type: string
    rowFilter.asset_component_tree.asset_name:
      in: query
      name: asset_name
      required: false
      schema:
        type: string
    rowFilter.asset_component_tree.name:
      in: query
      name: name
      required: false
      schema:
        type: string
    rowFilter.asset_component_tree.position_label:
      in: query
      name: position_label
      required: false
      schema:
        type: string
    rowFilter.asset_component_tree.serial_number:
      in: query
      name: serial_number
      required: false
      schema:
        type: string
    rowFilter.asset_component_tree.component_asset_id:
      in: query
      name: component_asset_id
      required: false
      schema:
        type: string
    rowFilter.asset_component_tree.component_asset_number:
      in: query
      name: component_asset_number
      required: false
      schema:
        type: string
    rowFilter.asset_component_tree.component_asset_name:
      in: query
      name: component_asset_name
      required: false
      schema:
        type: string
    rowFilter.asset_component_tree.component_status:
      in: query
      name: component_status
      required: false
      schema:
        type: string
    rowFilter.asset_component_tree.component_status_category:
      in: query
      name: component_status_category
      required: false
      schema:
        type: string
    rowFilter.asset_component_tree.component_health_score:
      in: query
      name: component_health_score
      required: false
      schema:
        type: string
    rowFilter.asset_component_tree.part_id:
      in: query
      name: part_id
      required: false
      schema:
        type: string
    rowFilter.asset_component_tree.part_number:
      in: query
      name: part_number
      required: false
      schema:
        type: string
    rowFilter.asset_component_tree.part_name:
      in: query
      name: part_name
      required: false
      schema:
        type: string
    rowFilter.asset_component_tree.installed_at:
      in: query
      name: installed_at
      required: false
      schema:
        type: string
    rowFilter.asset_component_tree.installed_work_order_id:
      in: query
      name: installed_work_order_id
      required: false
      schema:
        type: string
    rowFilter.asset_component_tree.installed_work_order_number:
      in: query
      name: installed_work_order_number
      required: false
      schema:
        type: string
    rowFilter.asset_component_tree.removed_at:
      in: query
      name: removed_at
      required: false
      schema:
        type: string
    rowFilter.asset_component_tree.removed_work_order_id:
      in: query
      name: removed_work_order_id
      required: false
      schema:
        type: string
    rowFilter.asset_component_tree.removed_work_order_number:
      in: query
      name: removed_work_order_number
      required: false
      schema:
        type: string
    rowFilter.asset_component_tree.removal_reason:
      in: query
      name: removal_reason
      required: false
      schema:
        type: string
    rowFilter.asset_component_tree.is_fitted:
      in: query
      name: is_fitted
      required: false
      schema:
        type: string
    rowFilter.asset_component_tree.days_fitted:
      in: query
      name: days_fitted
      required: false
      schema:
        type: string
    rowFilter.asset_component_tree.removals_at_position:
      in: query
      name: removals_at_position
      required: false
      schema:
        type: string
    rowFilter.asset_component_tree.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:
    asset_component_tree:
      description: >-
        The fitted register with the assembly drawn on it: the row each
        component hangs off, how far

        down it sits, and the machine it belongs to.


        One row per record, like the register it reads. Nest by
        parent_component_id — depth cannot say what

        to nest under. A removed row is reported and not descended into, because
        what came off a

        sub-assembly that has itself come off is fitted to nothing here.


        For one asset's assembly use api.asset_components_under. WITH RECURSIVE
        is an optimisation fence, so

        filtering this view by root_asset_id walks every tree in the tenant
        before discarding all but one —

        32ms against 3.2ms, measured on twenty thousand component rows.
      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
        component_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
        component_asset_name:
          format: character varying
          maxLength: 250
          type: string
        component_asset_number:
          format: character varying
          maxLength: 80
          type: string
        component_health_score:
          format: numeric
          type: number
        component_id:
          description: |-
            Note:
            This is a Primary Key.<pk/>
          format: uuid
          type: string
        component_status:
          format: character varying
          maxLength: 150
          type: string
        component_status_category:
          format: character varying
          maxLength: 20
          type: string
        days_fitted:
          format: integer
          type: integer
        depth:
          format: integer
          type: integer
        installed_at:
          format: timestamp with time zone
          type: string
        installed_work_order_id:
          description: >-
            Note:

            This is a Foreign Key to
            `asset_maintenance_plans.next_work_order_id`.<fk
            table='asset_maintenance_plans' column='next_work_order_id'/>
          format: uuid
          type: string
        installed_work_order_number:
          format: character varying
          maxLength: 60
          type: string
        is_fitted:
          format: boolean
          type: boolean
        name:
          format: character varying
          type: string
        parent_component_id:
          format: uuid
          type: string
        part_id:
          description: >-
            Note:

            This is a Foreign Key to `inventory_available.part_id`.<fk
            table='inventory_available' column='part_id'/>
          format: uuid
          type: string
        part_name:
          format: character varying
          maxLength: 250
          type: string
        part_number:
          format: character varying
          maxLength: 80
          type: string
        position_label:
          format: character varying
          maxLength: 80
          type: string
        removal_reason:
          format: character varying
          maxLength: 200
          type: string
        removals_at_position:
          format: bigint
          type: integer
        removed_at:
          format: timestamp with time zone
          type: string
        removed_work_order_id:
          description: >-
            Note:

            This is a Foreign Key to
            `asset_maintenance_plans.next_work_order_id`.<fk
            table='asset_maintenance_plans' column='next_work_order_id'/>
          format: uuid
          type: string
        removed_work_order_number:
          format: character varying
          maxLength: 60
          type: string
        root_asset_id:
          format: uuid
          type: string
        row_version:
          format: bigint
          type: integer
        serial_number:
          format: character varying
          maxLength: 150
          type: string
      type: object

````