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

# Sites with what stands on them, who answers for them, and whether their working week is

> configured at all.

site_head_user_id and alternate_site_head_user_id are the two accounts responsible for everything
at the site: they are what a workflow node naming SITE_HEAD or ALTERNATE_SITE_HEAD resolves to, and
what a notification addressed to either reaches. Both are null on a site nobody has named a head
for, and nothing stands in for them — an approval step that resolves to nobody waits, which is
visible, where a silent fallback would not be.



## OpenAPI

````yaml /api-reference/openapi.json get /site_settings
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:
  /site_settings:
    get:
      tags:
        - Sites, locations and the organisation
      summary: >-
        Sites with what stands on them, who answers for them, and whether their
        working week is
      description: >-
        configured at all.


        site_head_user_id and alternate_site_head_user_id are the two accounts
        responsible for everything

        at the site: they are what a workflow node naming SITE_HEAD or
        ALTERNATE_SITE_HEAD resolves to, and

        what a notification addressed to either reaches. Both are null on a site
        nobody has named a head

        for, and nothing stands in for them — an approval step that resolves to
        nobody waits, which is

        visible, where a silent fallback would not be.
      parameters:
        - $ref: '#/components/parameters/rowFilter.site_settings.id'
        - $ref: '#/components/parameters/rowFilter.site_settings.code'
        - $ref: '#/components/parameters/rowFilter.site_settings.name'
        - $ref: '#/components/parameters/rowFilter.site_settings.company_id'
        - $ref: '#/components/parameters/rowFilter.site_settings.company_name'
        - $ref: '#/components/parameters/rowFilter.site_settings.business_unit_id'
        - $ref: '#/components/parameters/rowFilter.site_settings.business_unit_name'
        - $ref: '#/components/parameters/rowFilter.site_settings.city'
        - $ref: '#/components/parameters/rowFilter.site_settings.timezone'
        - $ref: '#/components/parameters/rowFilter.site_settings.site_head_user_id'
        - $ref: '#/components/parameters/rowFilter.site_settings.site_head_name'
        - $ref: '#/components/parameters/rowFilter.site_settings.site_head_email'
        - $ref: >-
            #/components/parameters/rowFilter.site_settings.alternate_site_head_user_id
        - $ref: >-
            #/components/parameters/rowFilter.site_settings.alternate_site_head_name
        - $ref: >-
            #/components/parameters/rowFilter.site_settings.alternate_site_head_email
        - $ref: '#/components/parameters/rowFilter.site_settings.latitude'
        - $ref: '#/components/parameters/rowFilter.site_settings.longitude'
        - $ref: '#/components/parameters/rowFilter.site_settings.is_active'
        - $ref: '#/components/parameters/rowFilter.site_settings.locations'
        - $ref: '#/components/parameters/rowFilter.site_settings.assets'
        - $ref: '#/components/parameters/rowFilter.site_settings.workers'
        - $ref: '#/components/parameters/rowFilter.site_settings.open_work_orders'
        - $ref: '#/components/parameters/rowFilter.site_settings.working_days'
        - $ref: '#/components/parameters/rowFilter.site_settings.holidays_this_year'
        - $ref: '#/components/parameters/rowFilter.site_settings.custom_fields'
        - $ref: '#/components/parameters/rowFilter.site_settings.row_version'
        - $ref: '#/components/parameters/rowFilter.site_settings.created_at'
        - $ref: '#/components/parameters/rowFilter.site_settings.created_by_id'
        - $ref: '#/components/parameters/rowFilter.site_settings.created_by_name'
        - $ref: '#/components/parameters/rowFilter.site_settings.created_source'
        - $ref: '#/components/parameters/rowFilter.site_settings.updated_at'
        - $ref: '#/components/parameters/rowFilter.site_settings.updated_by_id'
        - $ref: '#/components/parameters/rowFilter.site_settings.updated_by_name'
        - $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/site_settings'
                type: array
            application/vnd.pgrst.object+json:
              schema:
                items:
                  $ref: '#/components/schemas/site_settings'
                type: array
            application/vnd.pgrst.object+json;nulls=stripped:
              schema:
                items:
                  $ref: '#/components/schemas/site_settings'
                type: array
            text/csv:
              schema:
                items:
                  $ref: '#/components/schemas/site_settings'
                type: array
          description: OK
        '206':
          description: Partial Content
components:
  parameters:
    rowFilter.site_settings.id:
      in: query
      name: id
      required: false
      schema:
        type: string
    rowFilter.site_settings.code:
      in: query
      name: code
      required: false
      schema:
        type: string
    rowFilter.site_settings.name:
      in: query
      name: name
      required: false
      schema:
        type: string
    rowFilter.site_settings.company_id:
      in: query
      name: company_id
      required: false
      schema:
        type: string
    rowFilter.site_settings.company_name:
      in: query
      name: company_name
      required: false
      schema:
        type: string
    rowFilter.site_settings.business_unit_id:
      in: query
      name: business_unit_id
      required: false
      schema:
        type: string
    rowFilter.site_settings.business_unit_name:
      in: query
      name: business_unit_name
      required: false
      schema:
        type: string
    rowFilter.site_settings.city:
      in: query
      name: city
      required: false
      schema:
        type: string
    rowFilter.site_settings.timezone:
      in: query
      name: timezone
      required: false
      schema:
        type: string
    rowFilter.site_settings.site_head_user_id:
      in: query
      name: site_head_user_id
      required: false
      schema:
        type: string
    rowFilter.site_settings.site_head_name:
      in: query
      name: site_head_name
      required: false
      schema:
        type: string
    rowFilter.site_settings.site_head_email:
      in: query
      name: site_head_email
      required: false
      schema:
        type: string
    rowFilter.site_settings.alternate_site_head_user_id:
      in: query
      name: alternate_site_head_user_id
      required: false
      schema:
        type: string
    rowFilter.site_settings.alternate_site_head_name:
      in: query
      name: alternate_site_head_name
      required: false
      schema:
        type: string
    rowFilter.site_settings.alternate_site_head_email:
      in: query
      name: alternate_site_head_email
      required: false
      schema:
        type: string
    rowFilter.site_settings.latitude:
      in: query
      name: latitude
      required: false
      schema:
        type: string
    rowFilter.site_settings.longitude:
      in: query
      name: longitude
      required: false
      schema:
        type: string
    rowFilter.site_settings.is_active:
      in: query
      name: is_active
      required: false
      schema:
        type: string
    rowFilter.site_settings.locations:
      in: query
      name: locations
      required: false
      schema:
        type: string
    rowFilter.site_settings.assets:
      in: query
      name: assets
      required: false
      schema:
        type: string
    rowFilter.site_settings.workers:
      in: query
      name: workers
      required: false
      schema:
        type: string
    rowFilter.site_settings.open_work_orders:
      in: query
      name: open_work_orders
      required: false
      schema:
        type: string
    rowFilter.site_settings.working_days:
      in: query
      name: working_days
      required: false
      schema:
        type: string
    rowFilter.site_settings.holidays_this_year:
      in: query
      name: holidays_this_year
      required: false
      schema:
        type: string
    rowFilter.site_settings.custom_fields:
      in: query
      name: custom_fields
      required: false
      schema:
        type: string
    rowFilter.site_settings.row_version:
      in: query
      name: row_version
      required: false
      schema:
        type: string
    rowFilter.site_settings.created_at:
      in: query
      name: created_at
      required: false
      schema:
        type: string
    rowFilter.site_settings.created_by_id:
      in: query
      name: created_by_id
      required: false
      schema:
        type: string
    rowFilter.site_settings.created_by_name:
      in: query
      name: created_by_name
      required: false
      schema:
        type: string
    rowFilter.site_settings.created_source:
      in: query
      name: created_source
      required: false
      schema:
        type: string
    rowFilter.site_settings.updated_at:
      in: query
      name: updated_at
      required: false
      schema:
        type: string
    rowFilter.site_settings.updated_by_id:
      in: query
      name: updated_by_id
      required: false
      schema:
        type: string
    rowFilter.site_settings.updated_by_name:
      in: query
      name: updated_by_name
      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:
    site_settings:
      description: >-
        Sites with what stands on them, who answers for them, and whether their
        working week is

        configured at all.


        site_head_user_id and alternate_site_head_user_id are the two accounts
        responsible for everything

        at the site: they are what a workflow node naming SITE_HEAD or
        ALTERNATE_SITE_HEAD resolves to, and

        what a notification addressed to either reaches. Both are null on a site
        nobody has named a head

        for, and nothing stands in for them — an approval step that resolves to
        nobody waits, which is

        visible, where a silent fallback would not be.
      properties:
        alternate_site_head_email:
          format: public.citext
          type: string
        alternate_site_head_name:
          format: character varying
          maxLength: 200
          type: string
        alternate_site_head_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
        assets:
          format: bigint
          type: integer
        business_unit_id:
          description: >-
            Note:

            This is a Foreign Key to `business_units.id`.<fk
            table='business_units' column='id'/>
          format: uuid
          type: string
        business_unit_name:
          format: character varying
          maxLength: 200
          type: string
        city:
          format: character varying
          maxLength: 120
          type: string
        code:
          format: character varying
          maxLength: 50
          type: string
        company_id:
          description: >-
            Note:

            This is a Foreign Key to `depreciation_packs.company_id`.<fk
            table='depreciation_packs' column='company_id'/>
          format: uuid
          type: string
        company_name:
          format: character varying
          maxLength: 200
          type: string
        created_at:
          format: timestamp with time zone
          type: string
        created_by_id:
          description: >-
            Note:

            This is a Foreign Key to `capex_invite_candidates.id`.<fk
            table='capex_invite_candidates' column='id'/>
          format: uuid
          type: string
        created_by_name:
          format: character varying
          maxLength: 200
          type: string
        created_source:
          format: text
          type: string
        custom_fields:
          format: jsonb
        holidays_this_year:
          format: bigint
          type: integer
        id:
          description: |-
            Note:
            This is a Primary Key.<pk/>
          format: uuid
          type: string
        is_active:
          format: boolean
          type: boolean
        latitude:
          format: numeric
          type: number
        locations:
          format: bigint
          type: integer
        longitude:
          format: numeric
          type: number
        name:
          format: character varying
          maxLength: 200
          type: string
        open_work_orders:
          format: bigint
          type: integer
        row_version:
          format: bigint
          type: integer
        site_head_email:
          format: public.citext
          type: string
        site_head_name:
          format: character varying
          maxLength: 200
          type: string
        site_head_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
        timezone:
          format: character varying
          maxLength: 100
          type: string
        updated_at:
          format: timestamp with time zone
          type: string
        updated_by_id:
          description: >-
            Note:

            This is a Foreign Key to `capex_invite_candidates.id`.<fk
            table='capex_invite_candidates' column='id'/>
          format: uuid
          type: string
        updated_by_name:
          format: character varying
          maxLength: 200
          type: string
        workers:
          format: bigint
          type: integer
        working_days:
          format: bigint
          type: integer
      type: object

````