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

# Hours booked to a work order, planned against actual, with whose time it was.

> A worker or a vendor. line_cost is derived from the rate rather than read from the stored total,
which no write path maintains.



## OpenAPI

````yaml /api-reference/openapi.json get /work_order_labour
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:
  /work_order_labour:
    get:
      tags:
        - Work order execution
      summary: >-
        Hours booked to a work order, planned against actual, with whose time it
        was.
      description: >-
        A worker or a vendor. line_cost is derived from the rate rather than
        read from the stored total,

        which no write path maintains.
      parameters:
        - $ref: '#/components/parameters/rowFilter.work_order_labour.id'
        - $ref: '#/components/parameters/rowFilter.work_order_labour.work_order_id'
        - $ref: '#/components/parameters/rowFilter.work_order_labour.worker_id'
        - $ref: '#/components/parameters/rowFilter.work_order_labour.worker_name'
        - $ref: '#/components/parameters/rowFilter.work_order_labour.vendor_id'
        - $ref: '#/components/parameters/rowFilter.work_order_labour.vendor_name'
        - $ref: '#/components/parameters/rowFilter.work_order_labour.rate_type'
        - $ref: '#/components/parameters/rowFilter.work_order_labour.planned_hours'
        - $ref: '#/components/parameters/rowFilter.work_order_labour.actual_hours'
        - $ref: '#/components/parameters/rowFilter.work_order_labour.hours_variance'
        - $ref: '#/components/parameters/rowFilter.work_order_labour.hourly_rate'
        - $ref: >-
            #/components/parameters/rowFilter.work_order_labour.hourly_rate_currency_id
        - $ref: '#/components/parameters/rowFilter.work_order_labour.currency_code'
        - $ref: '#/components/parameters/rowFilter.work_order_labour.line_cost'
        - $ref: >-
            #/components/parameters/rowFilter.work_order_labour.is_warranty_covered
        - $ref: '#/components/parameters/rowFilter.work_order_labour.notes'
        - $ref: '#/components/parameters/rowFilter.work_order_labour.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/work_order_labour'
                type: array
            application/vnd.pgrst.object+json:
              schema:
                items:
                  $ref: '#/components/schemas/work_order_labour'
                type: array
            application/vnd.pgrst.object+json;nulls=stripped:
              schema:
                items:
                  $ref: '#/components/schemas/work_order_labour'
                type: array
            text/csv:
              schema:
                items:
                  $ref: '#/components/schemas/work_order_labour'
                type: array
          description: OK
        '206':
          description: Partial Content
components:
  parameters:
    rowFilter.work_order_labour.id:
      in: query
      name: id
      required: false
      schema:
        type: string
    rowFilter.work_order_labour.work_order_id:
      in: query
      name: work_order_id
      required: false
      schema:
        type: string
    rowFilter.work_order_labour.worker_id:
      in: query
      name: worker_id
      required: false
      schema:
        type: string
    rowFilter.work_order_labour.worker_name:
      in: query
      name: worker_name
      required: false
      schema:
        type: string
    rowFilter.work_order_labour.vendor_id:
      in: query
      name: vendor_id
      required: false
      schema:
        type: string
    rowFilter.work_order_labour.vendor_name:
      in: query
      name: vendor_name
      required: false
      schema:
        type: string
    rowFilter.work_order_labour.rate_type:
      in: query
      name: rate_type
      required: false
      schema:
        type: string
    rowFilter.work_order_labour.planned_hours:
      in: query
      name: planned_hours
      required: false
      schema:
        type: string
    rowFilter.work_order_labour.actual_hours:
      in: query
      name: actual_hours
      required: false
      schema:
        type: string
    rowFilter.work_order_labour.hours_variance:
      in: query
      name: hours_variance
      required: false
      schema:
        type: string
    rowFilter.work_order_labour.hourly_rate:
      in: query
      name: hourly_rate
      required: false
      schema:
        type: string
    rowFilter.work_order_labour.hourly_rate_currency_id:
      in: query
      name: hourly_rate_currency_id
      required: false
      schema:
        type: string
    rowFilter.work_order_labour.currency_code:
      in: query
      name: currency_code
      required: false
      schema:
        type: string
    rowFilter.work_order_labour.line_cost:
      in: query
      name: line_cost
      required: false
      schema:
        type: string
    rowFilter.work_order_labour.is_warranty_covered:
      in: query
      name: is_warranty_covered
      required: false
      schema:
        type: string
    rowFilter.work_order_labour.notes:
      in: query
      name: notes
      required: false
      schema:
        type: string
    rowFilter.work_order_labour.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:
    work_order_labour:
      description: >-
        Hours booked to a work order, planned against actual, with whose time it
        was.


        A worker or a vendor. line_cost is derived from the rate rather than
        read from the stored total,

        which no write path maintains.
      properties:
        actual_hours:
          format: numeric
          type: number
        currency_code:
          format: character varying
          maxLength: 3
          type: string
        hourly_rate:
          format: numeric
          type: number
        hourly_rate_currency_id:
          format: uuid
          type: string
        hours_variance:
          format: numeric
          type: number
        id:
          description: |-
            Note:
            This is a Primary Key.<pk/>
          format: uuid
          type: string
        is_warranty_covered:
          format: boolean
          type: boolean
        line_cost:
          format: numeric
          type: number
        notes:
          format: text
          type: string
        planned_hours:
          format: numeric
          type: number
        rate_type:
          format: character varying
          maxLength: 30
          type: string
        row_version:
          format: bigint
          type: integer
        vendor_id:
          description: >-
            Note:

            This is a Foreign Key to `vendor_directory.vendor_id`.<fk
            table='vendor_directory' column='vendor_id'/>
          format: uuid
          type: string
        vendor_name:
          format: character varying
          maxLength: 200
          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
        worker_id:
          description: >-
            Note:

            This is a Foreign Key to `technician_workload.worker_id`.<fk
            table='technician_workload' column='worker_id'/>
          format: uuid
          type: string
        worker_name:
          format: character varying
          maxLength: 200
          type: string
      type: object

````

## Related topics

- [Inside a work order](/work/work-order-detail.md)
- [Reliability](/assets/reliability.md)
- [Approval workflows](/config/workflows.md)
- [Dashboards](/get-started/dashboards.md)
- [Work settings](/config/work.md)
