Schema
The Fleetio API uses standard conventions for its architecture:
Typically, all requests to our API will use the same base URL.
- API Base URL:
https://secure.fleetio.com/api/v1/
- All API access is over HTTPS
- All data is sent and received as JSON
Endpoints and Actions
Most resources follow the same format, exposing 5 actions, index
, create
, show
, update
, and delete
. Each action will require that the correct http verb be specified, as a single endpoint can perform different actions depending on the verb.
Action | Endpoint | HTTP Verb | Description | Response Data Type |
---|---|---|---|---|
Index | /vehicles | GET | Returns an array of all vehicles. | Array |
Create | /vehicles | POST | Creates a new vehicle. | No content |
Show | /vehicles/:id | GET | Returns the vehicle corresponding to the id parameter. | Hash |
Update | /vehicles/:id | PATCH | Updates the vehicle corresponding to the id parameter. | No content |
Delete | /vehicles/:id | DELETE | Deletes the vehicle corresponding to the id parameter. | No content |