Skip to main content

Retrieve Inspection Schedule

GET 

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

Retrieve an Inspection Schedule.

Request

Path Parameters

    id stringrequired

    Possible values: Value must match regular expression ^[0-9]+$

    The id of the relevant record

Query Parameters

    include_occurrences integer

    Includes upcoming_occurrences for this schedule, if any.

Responses

OK

Schema
    idId (integer)

    Possible values: >= 1

    activebooleanrequired

    Whether this Inspection Schedule is active.

    vehicle_idId (integer)required

    Possible values: >= 1

    inspection_form_idId (integer)required

    Possible values: >= 1

    updated_atdate-time

    The date and time at which this record was most recently updated.

    Example: 2023-03-14T13:46:27-06:00
    recurring_rule_descriptionstringrequired

    This describes the recurrence behavior of the Inspection Schedule.

    overduebooleanrequired

    Whether this Inspection Schedule is overdue.

    due_soonbooleanrequired

    Whether this Inspection Schedule is due soon.

    next_duestring

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

    Example: October 18, 2023
    next_due_relative_timestring

    The relative time until this Inspection Schedule is next due. If the Inspection Schedule is overdue, it will describe how long ago it was due. This attribute will only appear in responses if there is a next due date, or overdue.

    recurring_schedule_start_atstring

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

    Example: October 18, 2023
    upcoming_occurrencesstring[]

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)

Request Collapse all
Base URL
https://secure.fleetio.com/api
Auth
Parameters
— pathrequired
— query
ResponseClear

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