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

# Reservations that were refused for a clash: what was wanted, over what window, who was refused

> and which booking held it. `resource_name` and `resource_code` resolve whichever of the three kinds
it was.



## OpenAPI

````yaml /api-reference/openapi.json get /booking_clashes
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:
  /booking_clashes:
    get:
      tags:
        - Bookings
      summary: >-
        Reservations that were refused for a clash: what was wanted, over what
        window, who was refused
      description: >-
        and which booking held it. `resource_name` and `resource_code` resolve
        whichever of the three kinds

        it was.
      parameters:
        - $ref: '#/components/parameters/rowFilter.booking_clashes.id'
        - $ref: '#/components/parameters/rowFilter.booking_clashes.resource_kind'
        - $ref: '#/components/parameters/rowFilter.booking_clashes.resource_id'
        - $ref: '#/components/parameters/rowFilter.booking_clashes.resource_name'
        - $ref: '#/components/parameters/rowFilter.booking_clashes.resource_code'
        - $ref: '#/components/parameters/rowFilter.booking_clashes.tool_id'
        - $ref: '#/components/parameters/rowFilter.booking_clashes.asset_id'
        - $ref: '#/components/parameters/rowFilter.booking_clashes.location_id'
        - $ref: '#/components/parameters/rowFilter.booking_clashes.site_id'
        - $ref: '#/components/parameters/rowFilter.booking_clashes.site_code'
        - $ref: '#/components/parameters/rowFilter.booking_clashes.site_name'
        - $ref: '#/components/parameters/rowFilter.booking_clashes.wanted_from'
        - $ref: '#/components/parameters/rowFilter.booking_clashes.wanted_to'
        - $ref: '#/components/parameters/rowFilter.booking_clashes.refusal_code'
        - $ref: >-
            #/components/parameters/rowFilter.booking_clashes.blocking_booking_id
        - $ref: >-
            #/components/parameters/rowFilter.booking_clashes.blocking_booking_number
        - $ref: >-
            #/components/parameters/rowFilter.booking_clashes.blocking_booking_title
        - $ref: '#/components/parameters/rowFilter.booking_clashes.for_booking_id'
        - $ref: '#/components/parameters/rowFilter.booking_clashes.for_booking_number'
        - $ref: '#/components/parameters/rowFilter.booking_clashes.work_order_id'
        - $ref: '#/components/parameters/rowFilter.booking_clashes.work_order_number'
        - $ref: >-
            #/components/parameters/rowFilter.booking_clashes.requested_by_user_id
        - $ref: '#/components/parameters/rowFilter.booking_clashes.requested_by'
        - $ref: '#/components/parameters/rowFilter.booking_clashes.occurred_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/booking_clashes'
                type: array
            application/vnd.pgrst.object+json:
              schema:
                items:
                  $ref: '#/components/schemas/booking_clashes'
                type: array
            application/vnd.pgrst.object+json;nulls=stripped:
              schema:
                items:
                  $ref: '#/components/schemas/booking_clashes'
                type: array
            text/csv:
              schema:
                items:
                  $ref: '#/components/schemas/booking_clashes'
                type: array
          description: OK
        '206':
          description: Partial Content
components:
  parameters:
    rowFilter.booking_clashes.id:
      in: query
      name: id
      required: false
      schema:
        type: string
    rowFilter.booking_clashes.resource_kind:
      in: query
      name: resource_kind
      required: false
      schema:
        type: string
    rowFilter.booking_clashes.resource_id:
      in: query
      name: resource_id
      required: false
      schema:
        type: string
    rowFilter.booking_clashes.resource_name:
      in: query
      name: resource_name
      required: false
      schema:
        type: string
    rowFilter.booking_clashes.resource_code:
      in: query
      name: resource_code
      required: false
      schema:
        type: string
    rowFilter.booking_clashes.tool_id:
      in: query
      name: tool_id
      required: false
      schema:
        type: string
    rowFilter.booking_clashes.asset_id:
      in: query
      name: asset_id
      required: false
      schema:
        type: string
    rowFilter.booking_clashes.location_id:
      in: query
      name: location_id
      required: false
      schema:
        type: string
    rowFilter.booking_clashes.site_id:
      in: query
      name: site_id
      required: false
      schema:
        type: string
    rowFilter.booking_clashes.site_code:
      in: query
      name: site_code
      required: false
      schema:
        type: string
    rowFilter.booking_clashes.site_name:
      in: query
      name: site_name
      required: false
      schema:
        type: string
    rowFilter.booking_clashes.wanted_from:
      in: query
      name: wanted_from
      required: false
      schema:
        type: string
    rowFilter.booking_clashes.wanted_to:
      in: query
      name: wanted_to
      required: false
      schema:
        type: string
    rowFilter.booking_clashes.refusal_code:
      in: query
      name: refusal_code
      required: false
      schema:
        type: string
    rowFilter.booking_clashes.blocking_booking_id:
      in: query
      name: blocking_booking_id
      required: false
      schema:
        type: string
    rowFilter.booking_clashes.blocking_booking_number:
      in: query
      name: blocking_booking_number
      required: false
      schema:
        type: string
    rowFilter.booking_clashes.blocking_booking_title:
      in: query
      name: blocking_booking_title
      required: false
      schema:
        type: string
    rowFilter.booking_clashes.for_booking_id:
      in: query
      name: for_booking_id
      required: false
      schema:
        type: string
    rowFilter.booking_clashes.for_booking_number:
      in: query
      name: for_booking_number
      required: false
      schema:
        type: string
    rowFilter.booking_clashes.work_order_id:
      in: query
      name: work_order_id
      required: false
      schema:
        type: string
    rowFilter.booking_clashes.work_order_number:
      in: query
      name: work_order_number
      required: false
      schema:
        type: string
    rowFilter.booking_clashes.requested_by_user_id:
      in: query
      name: requested_by_user_id
      required: false
      schema:
        type: string
    rowFilter.booking_clashes.requested_by:
      in: query
      name: requested_by
      required: false
      schema:
        type: string
    rowFilter.booking_clashes.occurred_at:
      in: query
      name: occurred_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:
    booking_clashes:
      description: >-
        Reservations that were refused for a clash: what was wanted, over what
        window, who was refused

        and which booking held it. `resource_name` and `resource_code` resolve
        whichever of the three kinds

        it was.
      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
        blocking_booking_id:
          description: >-
            Note:

            This is a Foreign Key to `bookings.id`.<fk table='bookings'
            column='id'/>
          format: uuid
          type: string
        blocking_booking_number:
          format: character varying
          maxLength: 60
          type: string
        blocking_booking_title:
          format: character varying
          maxLength: 250
          type: string
        for_booking_id:
          description: >-
            Note:

            This is a Foreign Key to `bookings.id`.<fk table='bookings'
            column='id'/>
          format: uuid
          type: string
        for_booking_number:
          format: character varying
          maxLength: 60
          type: string
        id:
          description: |-
            Note:
            This is a Primary Key.<pk/>
          format: uuid
          type: string
        location_id:
          description: >-
            Note:

            This is a Foreign Key to `location_settings.id`.<fk
            table='location_settings' column='id'/>
          format: uuid
          type: string
        occurred_at:
          format: timestamp with time zone
          type: string
        refusal_code:
          format: character varying
          maxLength: 40
          type: string
        requested_by:
          format: character varying
          maxLength: 200
          type: string
        requested_by_user_id:
          description: >-
            Note:

            This is a Foreign Key to `capex_invite_candidates.id`.<fk
            table='capex_invite_candidates' column='id'/>
          format: uuid
          type: string
        resource_code:
          format: character varying
          type: string
        resource_id:
          format: uuid
          type: string
        resource_kind:
          format: character varying
          maxLength: 20
          type: string
        resource_name:
          format: character varying
          type: string
        site_code:
          format: character varying
          maxLength: 50
          type: string
        site_id:
          description: >-
            Note:

            This is a Foreign Key to `entry_currencies.for_site_id`.<fk
            table='entry_currencies' column='for_site_id'/>
          format: uuid
          type: string
        site_name:
          format: character varying
          maxLength: 200
          type: string
        tool_id:
          description: |-
            Note:
            This is a Foreign Key to `tools.id`.<fk table='tools' column='id'/>
          format: uuid
          type: string
        wanted_from:
          format: timestamp with time zone
          type: string
        wanted_to:
          format: timestamp with time zone
          type: string
        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
        work_order_number:
          format: character varying
          maxLength: 60
          type: string
      type: object

````