tread.io ApprovalAssignments API

The ApprovalAssignments API from tread.io — 12 operation(s) for approvalassignments.

Operations 12

GET /v1/companies/{company-id}/driver_days/{driver-day-id}/approval_status Retrieve ApprovalStatus for a Driver Day for a Company #
GET /v1/companies/{company-id}/driver_days/{driver-day-id}/approvals Retrieve ApprovalAssignments for a DriverDay as a Company #
PUT /v1/companies/{company-id}/driver_days/{driver-day-id}/approve Approve a DriverDay as a Company #
PUT /v1/companies/{company-id}/driver_days/{driver-day-id}/unapprove Unapprove a DriverDay as a Company #
GET /v1/companies/{company-id}/jobs/{job-id}/approval_status Retrieve ApprovalStatus for a Job for a Company #
GET /v1/companies/{company-id}/jobs/{job-id}/approvals Retrieve ApprovalAssignments for a Job for a Company #
GET /v1/companies/{company-id}/loads/{load-id}/approvals Retrieve ApprovalAssignments for a Load for a Company #
GET /v1/driver_days/{driver-day-id}/approval_status Retrieve ApprovalStatus for a Driver Day #
GET /v1/driver_days/{driver-day-id}/approvals Retrieve ApprovalAssignments for a Driver Day #
GET /v1/jobs/{job-id}/approval_status Retrieve ApprovalStatus for a Job #
GET /v1/jobs/{job-id}/approvals Retrieve ApprovalAssignments for a Job #
GET /v1/loads/{load-id}/approvals Retrieve ApprovalAssignments for a Load #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/treadio-approvalassignments-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

treadio-approvalassignments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Horizon API V1 AccountExternalTruckIdentifier Approval Assignments API
  version: '1.0'
  contact:
    name: Tread
    url: https://tread.io
    email: developers@tread.io
  description: 'This is the Version 1 implementation.


    When in doubt we default to the practices outlined [here](https://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api#advanced-queries)'
  license:
    name: Private
    url: https://tread.io
servers:
- description: production
  url: https://api.tread-horizon.com
security:
- bearerAuth: []
tags:
- name: ApprovalAssignments
paths:
  /v1/companies/{company-id}/driver_days/{driver-day-id}/approval_status:
    parameters:
    - schema:
        type: string
        format: uuid
      name: driver-day-id
      in: path
      required: true
      description: Driver Day Id
    - schema:
        type: string
        format: uuid
      name: company-id
      in: path
      required: true
      description: Company ID
    - $ref: '#/components/parameters/Accept-Language'
    get:
      summary: Retrieve ApprovalStatus for a Driver Day for a Company
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    $ref: '#/components/schemas/Approval-Status'
          headers:
            Link:
              schema:
                type: string
              description: Contains prev and next links for pagination
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
      operationId: get-v1-companies-company-id-driver-days-driver-day-id-driver_status
      description: Retrieve  `ApprovalStatus` for a visible `DriverDay` for a specific `Company`
      tags:
      - ApprovalAssignments
      x-stoplight:
        id: 2nwlpo1o4637v
  /v1/companies/{company-id}/driver_days/{driver-day-id}/approvals:
    parameters:
    - schema:
        type: string
        format: uuid
      name: company-id
      in: path
      required: true
      description: Company ID
    - schema:
        type: string
        format: uuid
      name: driver-day-id
      in: path
      required: true
      description: DriverDay ID
    - $ref: '#/components/parameters/Accept-Language'
    get:
      summary: Retrieve ApprovalAssignments for a DriverDay as a Company
      responses:
        '200':
          description: OK
          headers:
            Link:
              schema:
                type: string
              description: Contains prev and next links for pagination
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: array
                    x-stoplight:
                      id: h8hgsi1nvlpxz
                    items:
                      $ref: '#/components/schemas/ApprovalAssignment-Read'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/ModelError'
      operationId: get-v1-companies-company-id-driver_days-driver-day-id-approvals
      x-stoplight:
        id: 9tqoz2dxf9td3
      x-internal: true
      description: Retrieve `ApprovalAssignments` for a `DriverDay` as a `Company`
      tags:
      - ApprovalAssignments
  /v1/companies/{company-id}/driver_days/{driver-day-id}/approve:
    parameters:
    - schema:
        type: string
        format: uuid
      name: company-id
      in: path
      required: true
      description: Company ID
    - schema:
        type: string
        format: uuid
      name: driver-day-id
      in: path
      required: true
      description: DriverDay ID
    - $ref: '#/components/parameters/Accept-Language'
    put:
      summary: Approve a DriverDay as a Company
      tags:
      - ApprovalAssignments
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    $ref: '#/components/schemas/DriverDay-Read'
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '403':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
        '415':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/ModelError'
      operationId: put-v1-companies-company-id-driver_days-driver-day-id-approve
      x-stoplight:
        id: qcgf2529culuc
      x-internal: true
      description: 'Approve a `DriverDay` by ID as a `Company`


        This endpoint requires the `approve_driver_day` permission.'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Approval-Approve'
  /v1/companies/{company-id}/driver_days/{driver-day-id}/unapprove:
    parameters:
    - schema:
        type: string
        format: uuid
      name: company-id
      in: path
      required: true
      description: Company ID
    - schema:
        type: string
        format: uuid
      name: driver-day-id
      in: path
      required: true
      description: DriverDay ID
    - $ref: '#/components/parameters/Accept-Language'
    put:
      summary: Unapprove a DriverDay as a Company
      tags:
      - ApprovalAssignments
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    $ref: '#/components/schemas/DriverDay-Read'
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '403':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
        '415':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/ModelError'
      operationId: put-v1-companies-company-id-driver_days-driver-day-id-unapprove
      x-stoplight:
        id: or0ir2wc8pnje
      x-internal: true
      description: 'Unapprove a `DriverDay` by ID as a `Company`



        This endpoint requires the `approve_driver_day` permission.'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties: {}
  /v1/companies/{company-id}/jobs/{job-id}/approval_status:
    parameters:
    - schema:
        type: string
        format: uuid
      name: job-id
      in: path
      required: true
      description: Job Id
    - schema:
        type: string
        format: uuid
      name: company-id
      in: path
      required: true
      description: Company ID
    - $ref: '#/components/parameters/Accept-Language'
    get:
      summary: Retrieve ApprovalStatus for a Job for a Company
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    $ref: '#/components/schemas/Approval-Status'
          headers:
            Link:
              schema:
                type: string
              description: Contains prev and next links for pagination
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
      operationId: get-v1-companies-company-id-jobs-job-id-driver_status
      description: Retrieve  `ApprovalStatus` for a visible `Job` for a specific `Company`
      tags:
      - ApprovalAssignments
      x-stoplight:
        id: amdv2nn5zoknz
  /v1/companies/{company-id}/jobs/{job-id}/approvals:
    parameters:
    - schema:
        type: string
        format: uuid
      name: job-id
      in: path
      required: true
      description: Job ID
    - schema:
        type: string
        format: uuid
      name: company-id
      in: path
      required: true
      description: Company ID
    - $ref: '#/components/parameters/Accept-Language'
    get:
      summary: Retrieve ApprovalAssignments for a Job for a Company
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ApprovalAssignment-Read'
          headers:
            Link:
              schema:
                type: string
              description: Contains prev and next links for pagination
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
      operationId: get-v1-companies-company-id-jobs-job-id-job_approvals
      description: Retrieve all `ApprovalAssignments` visible to the specified `Company` for a `Job`
      x-stoplight:
        id: wpvi2o1l6w7d8
      tags:
      - ApprovalAssignments
  /v1/companies/{company-id}/loads/{load-id}/approvals:
    parameters:
    - schema:
        type: string
        format: uuid
      name: load-id
      in: path
      required: true
      description: Load ID
    - schema:
        type: string
        format: uuid
      name: company-id
      in: path
      required: true
      description: Company ID
    - $ref: '#/components/parameters/Accept-Language'
    get:
      summary: Retrieve ApprovalAssignments for a Load for a Company
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ApprovalAssignment-Read'
          headers:
            Link:
              schema:
                type: string
              description: Contains prev and next links for pagination
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
      operationId: get-v1-companies-company-id-loads-load-id-load_approvals
      description: Retrieve all `ApprovalAssignments` visible to the specified `Company` for a `Load`
      tags:
      - ApprovalAssignments
      x-stoplight:
        id: uazfhzq623xqz
  /v1/driver_days/{driver-day-id}/approval_status:
    parameters:
    - schema:
        type: string
        format: uuid
      name: driver-day-id
      in: path
      required: true
      description: Driver Day Id
    - $ref: '#/components/parameters/Accept-Language'
    get:
      summary: Retrieve ApprovalStatus for a Driver Day
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    $ref: '#/components/schemas/Approval-Status'
          headers:
            Link:
              schema:
                type: string
              description: Contains prev and next links for pagination
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
      operationId: get-v1-driver-days-driver-day-id-driver_status
      description: 'Deprecated in favor of "Retrieve  `ApprovalStatus` for a visible `DriverDay` for a Company"


        Retrieve  `ApprovalStatus` for a visible `DriverDay`'
      tags:
      - ApprovalAssignments
      x-stoplight:
        id: 2nvlpn1o4537v
      deprecated: true
  /v1/driver_days/{driver-day-id}/approvals:
    parameters:
    - schema:
        type: string
      name: driver-day-id
      in: path
      required: true
      description: Driver Day Id
    - $ref: '#/components/parameters/Accept-Language'
    get:
      summary: Retrieve ApprovalAssignments for a Driver Day
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ApprovalAssignment-Read'
          headers:
            Link:
              schema:
                type: string
              description: Contains prev and next links for pagination
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/ModelError'
      operationId: get-v1-driver-days-driver-day-id-driver_day_approvals
      description: 'Deprecated in favor of "Retrieve `ApprovalAssignments` for a `DriverDay` as a `Company`"


        Retrieve all `ApprovalAssignments` visible to your `Company` for a `DriverDay`'
      tags:
      - ApprovalAssignments
      x-stoplight:
        id: f3xryhg69wok0
      deprecated: true
  /v1/jobs/{job-id}/approval_status:
    parameters:
    - schema:
        type: string
        format: uuid
      name: job-id
      in: path
      required: true
      description: Job Id
    - $ref: '#/components/parameters/Accept-Language'
    get:
      summary: Retrieve ApprovalStatus for a Job
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    $ref: '#/components/schemas/Approval-Status'
          headers:
            Link:
              schema:
                type: string
              description: Contains prev and next links for pagination
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
      operationId: get-v1-job-job-id-driver_status
      description: 'Deprecated in favor of "Retrieve  `ApprovalStatus` for a visible `Job` for a Company"


        Retrieve  `ApprovalStatus` for a visible `Job`'
      tags:
      - ApprovalAssignments
      x-stoplight:
        id: amcv2nm5zojnz
      deprecated: true
  /v1/jobs/{job-id}/approvals:
    parameters:
    - schema:
        type: string
      name: job-id
      in: path
      required: true
      description: Job ID
    - $ref: '#/components/parameters/Accept-Language'
    get:
      summary: Retrieve ApprovalAssignments for a Job
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ApprovalAssignment-Read'
          headers:
            Link:
              schema:
                type: string
              description: Contains prev and next links for pagination
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
      operationId: get-v1-jobs-job-id-job_approvals
      description: 'Deprecated in favor of "Retrieve ApprovalAssignments for a Job for a Company"


        Retrieve all `ApprovalAssignments` visible to your `Company` for a `Job`'
      x-stoplight:
        id: wpui2o9l6q7d8
      tags:
      - ApprovalAssignments
      deprecated: true
  /v1/loads/{load-id}/approvals:
    parameters:
    - schema:
        type: string
      name: load-id
      in: path
      required: true
      description: Load ID
    - $ref: '#/components/parameters/Accept-Language'
    get:
      summary: Retrieve ApprovalAssignments for a Load
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ApprovalAssignment-Read'
          headers:
            Link:
              schema:
                type: string
              description: Contains prev and next links for pagination
        '401':
          $ref: '#/components/responses/UnauthenticatedError'
        '404':
          $ref: '#/components/responses/Error'
        '406':
          $ref: '#/components/responses/Error'
      operationId: get-v1-loads-load-id-load_approvals
      description: 'Deprecated in favor of "Retrieve ApprovalAssignments for a Load for a Company"


        Retrieve all `ApprovalAssignments` visible to your `Company` for a `Load`'
      tags:
      - ApprovalAssignments
      x-stoplight:
        id: uazehzp622xqz
      deprecated: true
components:
  schemas:
    CompanyDayDriverStat-Read:
      title: CompanyDayDriverStat-Read
      x-stoplight:
        id: 3grxlvq5qo470
      allOf:
      - $ref: '#/components/schemas/Identifier'
      - $ref: '#/components/schemas/Timestamps'
      - type: object
        x-stoplight:
          id: e0k1y5lyccj7x
        properties:
          day:
            type: string
            x-stoplight:
              id: tq2kbgspesbyq
            format: date
          jobs_count:
            type: integer
            x-stoplight:
              id: lq3o1iorx79vx
      description: CompanyDayDriverStat
    DriverState:
      title: DriverState
      x-stoplight:
        id: ibubibnkuzq3g
      enum:
      - on_duty
      - off_duty
      - break
      example: on_duty
      description: These are the states of driver to display their availability
      x-internal: true
    Address-Read:
      title: Address-Read
      x-stoplight:
        id: v1mcd2qgns2tf
      type: object
      required:
      - thoroughfare
      - premise
      - locality
      - administrative_area
      - postal_code
      - country
      - lat
      - lon
      - place_id
      properties:
        thoroughfare:
          type: string
          x-stoplight:
            id: 8wrr7qkc9ilqn
        premise:
          type:
          - string
          - 'null'
          x-stoplight:
            id: z4jth408out1q
        locality:
          type: string
          x-stoplight:
            id: kfby6wqpgvxbz
        administrative_area:
          type: string
          x-stoplight:
            id: c9bkrloxf4t8d
        postal_code:
          type: string
          x-stoplight:
            id: 7zq51k1mof3o3
        country:
          type: string
          x-stoplight:
            id: iydw9q619ya01
          pattern: ^[A-Z]{2}
          example: US
          minLength: 2
          maxLength: 2
        lat:
          type:
          - string
          - 'null'
          x-stoplight:
            id: kqu1qtf9rivh1
          description: "latitude of the `Address`. \n\nMust be a stringified number between -90 and 90 inclusive.\n\nRequired if `lon` is present."
        lon:
          type:
          - string
          - 'null'
          x-stoplight:
            id: oly2yabkzpk9g
          description: "longitude of the `Address`. \n\nMust be a stringified number between -180 and 180 inclusive.\n\nRequired if `lat` is present."
        place_id:
          type:
          - string
          - 'null'
          x-stoplight:
            id: im1fdq7qqxdij
          description: NextBillion placeID
      additionalProperties: false
    DeliveredQuantity-Read:
      title: DeliveredQuantity-Read
      x-stoplight:
        id: trwwil0vsjrtn
      type: object
      required:
      - delivered
      - unit_of_measure
      - material_name
      - total
      - ticketed
      properties:
        delivered:
          type: string
          x-stoplight:
            id: xqo11su8z94my
        unit_of_measure:
          $ref: '#/components/schemas/NullableOrderUnitOfMeasure'
        material_name:
          type:
          - string
          - 'null'
          x-stoplight:
            id: h7jmwwi6jx02h
        total:
          type: string
          x-stoplight:
            id: 8ghxe07yz102y
        ticketed:
          type:
          - boolean
          - 'null'
          x-stoplight:
            id: hxg8e07yz102y
      additionalProperties: false
    QuantityUnit:
      title: QuantityUnit
      x-stoplight:
        id: c6w3qflofaihr
      type: object
      required:
      - quantity
      - unit_of_measure
      properties:
        quantity:
          type: string
          x-stoplight:
            id: xf9z9w59yb0cv
        unit_of_measure:
          $ref: '#/components/schemas/OrderUnitOfMeasure'
      x-internal: true
      additionalProperties: false
    RoleApprovable:
      title: RoleApprovable
      x-stoplight:
        id: fie0647l1zmho
      type: object
      required:
      - approved
      - approvable
      - unapprovable
      - billing_approved_at
      - field_approved_at
      properties:
        approved:
          type: boolean
          x-stoplight:
            id: je3f3e9kzi9d8
        approvable:
          type: boolean
          x-stoplight:
            id: 3e8gmlshlm661
        unapprovable:
          type: boolean
          x-stoplight:
            id: 7t2cltf0njxtj
        billing_approved_at:
          type:
          - string
          - 'null'
          x-stoplight:
            id: f2bkkw0znb1uy
          format: date-time
        field_approved_at:
          type:
          - string
          - 'null'
          x-stoplight:
            id: 78l5n1sakfgl3
          format: date-time
      additionalProperties: false
    TreadId:
      title: TreadId
      x-stoplight:
        id: 43k4t5tl359m4
      type: object
      required:
      - tread_id
      properties:
        tread_id:
          type: string
          x-stoplight:
            id: zi3ld7djflw6f
          pattern: ^[0-9A-F]{6}$
          minLength: 6
          maxLength: 6
          example: ABC123
          description: Tread ID
      additionalProperties: false
    CompanyType:
      title: CompanyType
      x-stoplight:
        id: dkzo7gjbtb1b3
      enum:
      - broker
      - contractor
      - hauler
      - owner_operator
      - producer
      - super
      example: hauler
      description: Company Type
    GpsStatusable:
      title: GpsStatusable
      x-stoplight:
        id: o6oprcupw6ep7
      type: object
      required:
      - gps_status
      properties:
        gps_status:
          $ref: '#/components/schemas/GpsStatus'
      additionalProperties: false
    EquipmentType-Read-Nested:
      title: EquipmentType-Read-Nested
      x-stoplight:
        id: em46i5kysysdh
      type: object
      required:
      - id
      - name
      - system
      - external_id
      - accounting_id
      properties:
        id:
          type: string
          x-stoplight:
            id: 835oy22o6h24z
          format: uuid
        name:
          type: string
          x-stoplight:
            id: tnszefd7lypln
        system:
          type: boolean
          x-stoplight:
            id: vimoqz5e8x6gx
        external_id:
          type:
          - string
          - 'null'
          x-stoplight:
            id: ttaijg77qmbgk
        accounting_id:
          type:
          - string
          - 'null'
          x-stoplight:
            id: s4rscgptv68x3
      additionalProperties: false
    Error:
      title: Error
      x-stoplight:
        id: 3g57kkik3l464
      type: object
      description: An Error.
      required:
      - code
      properties:
        code:
          type: string
          x-stoplight:
            id: 7o9x1t8v0bgfo
      additionalProperties: false
    ApprovalAction:
      title: ApprovalAction
      x-stoplight:
        id: 8rmckareb7tfg
      enum:
      - approve
      - unapprove
    ApprovalAssignment-Read:
      title: ApprovalAssignment-Read
      x-stoplight:
        id: j2fcwgvbf8qjm
      allOf:
      - $ref: '#/components/schemas/Identifier'
      - $ref: '#/components/schemas/Timestamps'
      - type: object
        x-stoplight:
          id: ehtvb5mvqfibq
        required:
        - approval_category
        properties:
          approval_type:
            x-stoplight:
              id: 7xzbj92ggrge9
            enum:
            - foreman
            - biller
            - company_admin
            - platform_admin
          approver_id:
            type: string
            x-stoplight:
              id: kiva0q8kik4ph
            format: uuid
          external_approver_name:
            type:
            - string
            - 'null'
            x-stoplight:
              id: mzm4cqlaqkbhz
          approver_type:
            x-stoplight:
              id: hg7tm679i5kjp
            enum:
            - User
            - Company
            - Impersonation
            - M2MClient
          approval_action:
            $ref: '#/components/schemas/ApprovalAction'
          approval_category:
            $ref: '#/components/schemas/ApprovalCategory'
      x-tags:
      - Approvals
    Equipment-Read-Default-Nested:
      title: Equipment-Read-Default-Nested
      x-stoplight:
        id: kojte9y4g6t9v
      allOf:
      - $ref: '#/components/schemas/Identifier'
      - type: object
        required:
        - name
        - external_id
        - equipment_type
        - equipment_id
        properties:
          name:
            type: string
            description: Equipment name
          external_id:
            type:
            - string
            - 'null'
          equipment_type:
            $ref: '#/components/schemas/EquipmentType-Read-Nested'
          company_share:
            $ref: '#/components/schemas/CompanyShare-Read-Nested'
          equipment_id:
            type: string
            x-stoplight:
              id: v25n5jka8apv0
    Equipment-Read-Typeahead:
      title: Equipment-Read-Typeahead
      x-stoplight:
        id: sv94osohm5xhg
      allOf:
      - $ref: '#/components/schemas/Identifier'
      - type: object
        required:
        - name
        - equipment_type
        - external_id
        - equipment_id
        properties:
          name:
            type: string
            description: Equipment name
          equipment_type:
            $ref: '#/components/schemas/EquipmentType-Read-Nested'
          external_id:
            type:
            - string
            - 'null'
            x-stoplight:
              id: jrkz95htilck3
          company_share:
            $ref: '#/components/schemas/CompanyShare-Read-Nested'
          equipment_id:
            type: string
            x-stoplight:
              id: fkr9fkdtl996f
    OrderUnitOfMeasure:
      title: OrderUnitOfMeasure
      x-stoplight:
        id: kahcgn7w8swdv
      enum:
      - Load
      - Tonne
      - Ton
      - Yard
      - Meter
      - Foot
      - Liter
      - Hour
      - Bushel
      - Gallon
      - CubicMeter
      - Mile
      - Kilometer
      - Barrel
      - Bag
      - Pallet
      example: Load
    ShiftAdjustmentType:
      title: ShiftAdjustmentType
      x-stoplight:
        id: pjqvol5eso8aa
      enum:
      - break
      - breakdown
      - lunch
      - wait_time
      example: break
    ModelError-Item:
      title: ModelError-Item
      x-stoplight:
        id: b93chwval2t8d
      type: object
      required:
      - model
      - field
      - message
      properties:
        model:
          type: string
          x-stoplight:
            id: 30myfyjkno8ao
          description: The Model associated with this Error
        field:
          type: string
          x-stoplight:
            id: 8gl4ed3uxhdws
          description: The field associated with this Error
        message:
          type: string
          x-stoplight:
            id: bmgbrtmw17qsj
          description: The Error message
      additionalProperties: false
    Contact-Read-Nested:
      title: Contact-Read-Nested
      x-stoplight:
        id: 3u6d8qhsz5ehn
      allOf:
      - $ref: '#/components/schemas/Identifier'
      - type: object
        required:
        - name
        - email
        - phone
        properties:
          name:
            type:
            - string
            - 'null'
            x-stoplight:
              id: sd80y9pbgvkok
          email:
            type:
            - string
            - 'null'
            x-stoplight:
              id: 883fmt34pdeaj
          phone:
            type:
            - string
            - 'null'
            x-stoplight:
              id: wdtqyju4t4u06
            example: '+18885551234'
      description: ''
    Address-Read-Nested:
      title: Address-Read-Nested
      x-stoplight:
        id: cvym2dzuo375q
      allOf:
      - $ref: '#/components/schemas/Identifier'
      - $ref: '#/components/schemas/Address-Read'
    Account-Read-Nested:
      title: Account-Read-Nested
      x-stoplight:
        id: zo8r3gsz1tm5h
      allOf:
      - $ref: '#/components/schemas/Identifier'
      - $ref: '#/components/schemas/Discardable'
      - type: object
        x-stoplight:
          id: gl7hua7pv8xka
        required:
        - name
        - account_types
        - external_id
        - accounting_id
        - company
        - schedule_on
        properties:
          name:
            type: string
            x-stoplight:
              id: a7g065w5byfcf
          account_types:
            type: array
            x-stoplight:
              id: a0e9c3lpr1wad
            items:
              $ref: '#/components/schemas/AccountType'
          external_id:
            type:
            - string
            - 'null'
            x-stoplight:
              id: yfrec4y0a90cb
          accounting_id:
            type:
            - string
            - 'null'
            x-stoplight:
              id: yfsec5y0a91cb
          company:
            type: object
            x-stoplight:
              id: 9loqtu14mvlnq
            required:
            - id
            properties:
              id:
                type: string
                x-stoplight:
                  id: udjkdjrz08pzr
                format: uuid
          billing_address:
            $ref: '#/components/schemas/Address-Read-Nested'
          schedule_on:
            type: boolean
            x-stoplight:
              id: 0g9kx77zym4ok
          connected_company:
            $ref: '#/components/schemas/Company-Read-Nested'
          billing_contact:
            $ref: '#/components/schemas/Contact-Read-Nested'
    DriverDay-Read:
      title: DriverDay-Read
      x-stoplight:
        id: x3uyxssr62k8m
      allOf:
      - $ref: '#/components/schemas/Identifier'
      - type: object
        required:
        - started_shift_at
        - ended_shift_at
        - jobs_count
        - loads_count
        - tickets_count
        - first_geofence_entry_at
        - last_geofence_exit_at
        - first_homebase_exit_at
        - last_homebase_entry_at
        - first_ticket_at
        - last_ticket_at
    

# --- truncated at 32 KB (51 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/treadio/refs/heads/main/openapi/treadio-approvalassignments-api-openapi.yml