Create Fault
POSThttps://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
- application/json
Body
Possible values: >= 1
The diagnostic trouble code. Must correspond with an existing Fault Rule.
Possible values: <= 255 characters
The number of times this Fault has occurred.
A short description about the problem.
An external identifier for the Fault, if applicable.
Possible values: <= 255 characters
The date and time when the Fault last occurred. We recommend using ISO-8601 formatted dates to avoid ambiguity.
2023-03-14T13:46:27-06:00
The name or label for the Fault.
Possible values: <= 255 characters
The status of the Fault.
Possible values: [open
, resolved
, ignored
]
The source or origin of the Fault.
Responses
- 201
- 401
- 403
- 422
- 500
OK
Response Headers
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 1
The date and time at which this record was created.
2023-03-14T13:46:27-06:00
The date and time at which this record was most recently updated.
2023-03-14T13:46:27-06:00
Possible values: >= 1
Possible values: >= 1
The diagnostic trouble code.
The number of times this Fault has occurred.
A short description about the problem.
An external identifier for the Fault, if applicable.
The date and time when the Fault last occurred.
2023-03-14T13:46:27-06:00
The name or label for the Fault.
The status of the Fault.
Possible values: [open
, resolved
, ignored
]
open
The source or origin of the Fault.
The date and time when the associated Vehicle
was archived, if applicable.
2023-03-14T13:46:27-06:00
Possible values: >= 1
Indicates if the Fault is sample data.
An optional key for idempotent operations.
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"account_id": 0,
"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",
"vehicle_archived_at": "2023-03-14T13:46:27-06:00",
"fault_rule_id": 0,
"is_sample": true,
"idempotency_key": "string"
}
Request could not be authenticated
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 400
and <= 599
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}
Insufficient permission to perform this operation
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 400
and <= 599
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}
Unprocessable Entity
- application/json
- Schema
- Example (auto)
- Example
Schema
errors object
{
"errors": {}
}
{
"errors": {
"field1": [
"error1",
"error2"
],
"field2": [
"error3"
]
}
}
Something unexpected happened
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 400
and <= 599
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}
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
- ruby
- python
- csharp
- go
- java
- nodejs
- php
- CURL