Skip to main content

List Inspection Schedules

GET 

https://secure.fleetio.com/api/inspection_schedules

Returns a list of Inspection Schedules.

Request

Query Parameters

    start_cursor string

    The start cursor for Keyset pagination.

    per_page integer

    Possible values: >= 2 and <= 100

    The number of records per page to return.

    Default value: 50
    filter object

    The fields, operations, and values to filter the records by.

    vehicle_id object
    eqstringrequired
    inspection_form_id object
    eqstringrequired
    active object
    eqstringrequired
    inspection_schedule_status object
    eqstringrequired

    Possible values: [ok, overdue, due_soon]

    last_inspected_at object
    oneOf
    ltstringrequired
    last_sent_at object
    oneOf
    ltstringrequired
    next_due_at object
    oneOf
    ltstringrequired
    created_at object
    oneOf
    ltstringrequired
    updated_at object
    oneOf
    ltstringrequired
    sort object

    The fields and direction to sort the results by.

    idSortAscDescDefaultDesc (string)

    Possible values: [asc, desc]

    Default value: desc
    last_inspected_atSortAscDesc (string)

    Possible values: [asc, desc]

    last_sent_atSortAscDesc (string)

    Possible values: [asc, desc]

    next_due_atSortAscDesc (string)

    Possible values: [asc, desc]

    created_atSortAscDesc (string)

    Possible values: [asc, desc]

    updated_atSortAscDesc (string)

    Possible values: [asc, desc]

Responses

OK

Schema
    start_cursorstringnullable

    The current start cursor of the records returned.

    next_cursorstringnullable

    The next cursor to retrieve the next page of records.

    per_pageinteger

    The maxumum number of records returned.

    estimated_remaining_countinteger

    The number of remaining records including the returned records, up to a maximum of 500.

    filtered_by object[]

    The filters applied to the returned record set.

  • Array [
  • anyOf
    vehicle_id object
    eqstringrequired
  • ]
  • sorted_by object[]

    The sorts applied to the returned record set.

  • Array [
  • anyOf
    last_inspected_atSortAscDesc (string)

    Possible values: [asc, desc]

  • ]
  • records object[]
  • Array [
  • idinteger
    activebooleanrequired

    Whether this Inspection Schedule is active.

    vehicle_idintegerrequired
    inspection_form_idintegerrequired

    The Id of the InspectionForm associated with this Inspection Schedule.

    last_submission_idintegernullable

    The Id of the most recent SubmittedInspectionForm for this Inspection Schedule.

    updated_atdate-time
    created_atdate-time
    recurring_rule_descriptionstringrequired

    This describes the recurrence behavior of the Inspection Schedule.

    recurring_schedule_start_atdate-timenullable

    The date and time at which this Inspection Schedule's recurrence behavior began. This attribute will only appear in responses if the Inspection Schedule is recurring.

    next_due_atdate-time

    The date and time at which this Inspection Schedule is next due. This attribute will only appear in responses if there is a next due date.

    last_sent_atdate-timenullable

    The date and time at which this Inspection Schedule was last sent.

    last_inspected_atdate-timenullable

    The date and time of the last SubmittedInspectionForm.

    inspection_schedule_statusstringrequired

    The status of this Inspection Schedule.

    Possible values: [due_soon, overdue, ok]

    vehicle object

    A Vehicle

    idintegerrequired
    namestringrequired

    This vehicle's name.

    colorstringnullable

    The color of this Vehicle.

    license_platestringnullable

    The license plate number of this Vehicle.

    vinstringnullable

    The Vehicle Identification Number of this Vehicle.

    yearstringnullable

    This Vehicle's model year.

    makestringnullable

    The name of this Vehicle's manufacturer.

    modelstringnullable

    The name of the model of this Vehicle.

    trimstringnullable

    The trim level of this Vehicle.

    registration_expiration_monthintegernullable

    The month in which this Vehicle's registration expires.

    Possible values: >= 0 and <= 12

    registration_statestringnullable

    The state, province, or territory in which this Vehicle is registered.

    default_image_url_smallstringnullable

    The URL of a small-sized version of the default image for this Vehicle.

  • ]

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: Prefix the value with "Token", for example: "Token 76cbe06c49a64".
You can generate a new API key [here](https://secure.fleetio.com/api_keys).
name: Account-Tokentype: apiKeyin: headerdescription: You can find your Account-Token [here](https://secure.fleetio.com/api_keys)
curl -L 'https://secure.fleetio.com/api/inspection_schedules' \
-H 'Accept: application/json' \
-H 'Authorization: Token <Authorization>' \
-H 'Account-Token: <Authorization>'
Request Collapse all
Base URL
https://secure.fleetio.com/api
Auth
Parameters
— query
— query
— query
vehicle_ideq
inspection_form_ideq
activeeq
inspection_schedule_statuseq
last_inspected_at
last_sent_at
next_due_at
created_at
updated_at
— query
id
last_inspected_at
last_sent_at
next_due_at
created_at
updated_at
ResponseClear

Click the Send API Request button above and see the response here!