Skip to main content

Create Fault

POST 

https://secure.fleetio.com/api/v1/faults

Create a new Fault Record. If you need to create many Faults at once, use the Bulk API to avoid Rate Limiting errors.

Request

Body

    vehicle_idId (integer)required

    Possible values: >= 1

    codestringrequired

    The diagnostic trouble code. Must correspond with an existing Fault Rule.

    Possible values: <= 255 characters

    countinteger

    The number of times this Fault has occurred.

    descriptionstring

    A short description about the problem.

    external_idstring

    An external identifier for the Fault, if applicable.

    Possible values: <= 255 characters

    last_occurred_atdate-time

    The date and time when the Fault last occurred. We recommend using ISO-8601 formatted dates to avoid ambiguity.

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

    The name or label for the Fault.

    Possible values: <= 255 characters

    statusstring

    The status of the Fault.

    Possible values: [open, resolved, ignored]

    sourcestring

    The source or origin of the Fault.

Responses

OK

Response Headers
    Schema
      idId (integer)required

      Possible values: >= 1

      created_atdate-time

      The date and time at which this record was created.

      Example: 2023-03-14T13:46:27-06:00
      updated_atdate-time

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

      Example: 2023-03-14T13:46:27-06:00
      account_idId (integer)required

      Possible values: >= 1

      vehicle_idNullableId (integer)nullablerequired

      Possible values: >= 1

      codestringrequired

      The diagnostic trouble code.

      countintegernullablerequired

      The number of times this Fault has occurred.

      descriptionstringnullablerequired

      A short description about the problem.

      external_idstringnullable

      An external identifier for the Fault, if applicable.

      last_occurred_atdate-timenullablerequired

      The date and time when the Fault last occurred.

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

      The name or label for the Fault.

      statusstringrequired

      The status of the Fault.

      Possible values: [open, resolved, ignored]

      Default value: open
      sourcestringnullable

      The source or origin of the Fault.

      vehicle_archived_atdate-timenullablerequired

      The date and time when the associated Vehicle was archived, if applicable.

      Example: 2023-03-14T13:46:27-06:00
      fault_rule_idNullableId (integer)nullable

      Possible values: >= 1

      is_sampleboolean

      Indicates if the Fault is sample data.

      idempotency_keystringnullable

      An optional key for idempotent operations.

    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
    Body
    {
      "vehicle_id": 0,
      "code": "string",
      "count": 0,
      "description": "string",
      "external_id": "string",
      "last_occurred_at": "2023-03-14T13:46:27-06:00",
      "name": "string",
      "status": "open",
      "source": "string"
    }
    
    ResponseClear

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