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

# How much of each part went out per month.

> Split between planned maintenance and everything else. The row with no warehouse is the tenant-wide
series.



## OpenAPI

````yaml /api-reference/openapi.json get /part_consumption
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:
  /part_consumption:
    get:
      tags:
        - Parts demand
      summary: How much of each part went out per month.
      description: >-
        Split between planned maintenance and everything else. The row with no
        warehouse is the tenant-wide

        series.
      parameters:
        - $ref: '#/components/parameters/rowFilter.part_consumption.id'
        - $ref: '#/components/parameters/rowFilter.part_consumption.part_id'
        - $ref: '#/components/parameters/rowFilter.part_consumption.part_number'
        - $ref: '#/components/parameters/rowFilter.part_consumption.part_name'
        - $ref: '#/components/parameters/rowFilter.part_consumption.warehouse_id'
        - $ref: '#/components/parameters/rowFilter.part_consumption.warehouse_code'
        - $ref: '#/components/parameters/rowFilter.part_consumption.period_start'
        - $ref: '#/components/parameters/rowFilter.part_consumption.period_end'
        - $ref: '#/components/parameters/rowFilter.part_consumption.quantity_consumed'
        - $ref: '#/components/parameters/rowFilter.part_consumption.planned_quantity'
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption.unplanned_quantity
        - $ref: '#/components/parameters/rowFilter.part_consumption.planned_share'
        - $ref: '#/components/parameters/rowFilter.part_consumption.issue_count'
        - $ref: '#/components/parameters/rowFilter.part_consumption.asset_count'
        - $ref: '#/components/parameters/rowFilter.part_consumption.consumption_cost'
        - $ref: '#/components/parameters/rowFilter.part_consumption.computed_at'
        - $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/part_consumption'
                type: array
            application/vnd.pgrst.object+json:
              schema:
                items:
                  $ref: '#/components/schemas/part_consumption'
                type: array
            application/vnd.pgrst.object+json;nulls=stripped:
              schema:
                items:
                  $ref: '#/components/schemas/part_consumption'
                type: array
            text/csv:
              schema:
                items:
                  $ref: '#/components/schemas/part_consumption'
                type: array
          description: OK
        '206':
          description: Partial Content
components:
  parameters:
    rowFilter.part_consumption.id:
      in: query
      name: id
      required: false
      schema:
        type: string
    rowFilter.part_consumption.part_id:
      in: query
      name: part_id
      required: false
      schema:
        type: string
    rowFilter.part_consumption.part_number:
      in: query
      name: part_number
      required: false
      schema:
        type: string
    rowFilter.part_consumption.part_name:
      in: query
      name: part_name
      required: false
      schema:
        type: string
    rowFilter.part_consumption.warehouse_id:
      in: query
      name: warehouse_id
      required: false
      schema:
        type: string
    rowFilter.part_consumption.warehouse_code:
      in: query
      name: warehouse_code
      required: false
      schema:
        type: string
    rowFilter.part_consumption.period_start:
      in: query
      name: period_start
      required: false
      schema:
        type: string
    rowFilter.part_consumption.period_end:
      in: query
      name: period_end
      required: false
      schema:
        type: string
    rowFilter.part_consumption.quantity_consumed:
      in: query
      name: quantity_consumed
      required: false
      schema:
        type: string
    rowFilter.part_consumption.planned_quantity:
      in: query
      name: planned_quantity
      required: false
      schema:
        type: string
    rowFilter.part_consumption.unplanned_quantity:
      in: query
      name: unplanned_quantity
      required: false
      schema:
        type: string
    rowFilter.part_consumption.planned_share:
      in: query
      name: planned_share
      required: false
      schema:
        type: string
    rowFilter.part_consumption.issue_count:
      in: query
      name: issue_count
      required: false
      schema:
        type: string
    rowFilter.part_consumption.asset_count:
      in: query
      name: asset_count
      required: false
      schema:
        type: string
    rowFilter.part_consumption.consumption_cost:
      in: query
      name: consumption_cost
      required: false
      schema:
        type: string
    rowFilter.part_consumption.computed_at:
      in: query
      name: computed_at
      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:
    part_consumption:
      description: >-
        How much of each part went out per month.


        Split between planned maintenance and everything else. The row with no
        warehouse is the tenant-wide

        series.
      properties:
        asset_count:
          format: integer
          type: integer
        computed_at:
          format: timestamp with time zone
          type: string
        consumption_cost:
          format: numeric
          type: number
        id:
          description: |-
            Note:
            This is a Primary Key.<pk/>
          format: uuid
          type: string
        issue_count:
          format: integer
          type: integer
        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
        period_end:
          format: date
          type: string
        period_start:
          format: date
          type: string
        planned_quantity:
          format: numeric
          type: number
        planned_share:
          format: numeric
          type: number
        quantity_consumed:
          format: numeric
          type: number
        unplanned_quantity:
          format: numeric
          type: number
        warehouse_code:
          format: character varying
          maxLength: 60
          type: string
        warehouse_id:
          description: >-
            Note:

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

````

## Related topics

- [Inside a part](/inventory/part-detail.md)
- [The capacity plan](/work/capacity.md)
- [Inventory settings](/config/inventory.md)
- [Reports](/analytics/reports.md)
- [Finding your way around](/get-started/navigating.md)
