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.
Headers
Limiting and Pagination
Limiting and Pagination
Preference
count=none Query Parameters
Filtering Columns
Ordering
Limiting and Pagination
Limiting and Pagination
Response
OK
Note:
This is a Foreign Key to asset_contracts.asset_id.
25080Note:
This is a Foreign Key to asset_contracts.asset_id.
25080Note: This is a Primary Key.
15020Note:
This is a Foreign Key to asset_maintenance_plans.next_work_order_id.
60Note:
This is a Foreign Key to inventory_available.part_id.
2508080200Note:
This is a Foreign Key to asset_maintenance_plans.next_work_order_id.
60150
