Schema

The Fleetio API uses standard conventions for its architecture:

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