API Access Token

v1_vehicle API

/**
 * REST API end-points for interacting with the 'vehicle' resource.
 *
 */
Vehicle Availability HTTP GET request
Returns information about the 'vehicle availability' resource filterable by the fields described below
Requires 'Vehicle Read Access' to be enabled in the 'Permissions' section of your Third Party Integration
Function taken from vehicle_resources.php
@return ARRAY of vehicle_availability
Field Description
Comma Separated list of columns to restrict results to. Order is kept. If field does not exist then column will be included, but a blank result will be returned
eg: "name,description,created_by"

Currently only enabled for GET requests using formats of HTML, TSV, CSV
Comma Separated list of columns to exclude from results.
Currently only enabled for GET requests using formats of HTML, TSV, CSV Note: Exclude field will be ignored if fields are supplied.
(YYYY-MM-DD HH:mm:ss), if supplied, only records modified more recent than this datetime will be returned
  

Returns information about 'vehicle category'
Resource response fields:
@return ARRAY of vehicle categories Returns a single record if the vehicle_category_id is provided.
Field Description
Comma Separated list of columns to restrict results to. Order is kept. If field does not exist then column will be included, but a blank result will be returned
eg: "name,description,created_by"

Currently only enabled for GET requests using formats of HTML, TSV, CSV
Comma Separated list of columns to exclude from results.
Currently only enabled for GET requests using formats of HTML, TSV, CSV Note: Exclude field will be ignored if fields are supplied.
(YYYY-MM-DD HH:mm:ss), if supplied, only records modified more recent than this datetime will be returned
Customised category for vehicles
  

vehicle_issue_note
HTTP DELETE
UNKNOWN
Field Description
(required)
  

vehicle_issue_note
HTTP GET
@return ARRAY of vehicle_issue_note
Field Description
Comma Separated list of columns to restrict results to. Order is kept. If field does not exist then column will be included, but a blank result will be returned
eg: "name,description,created_by"

Currently only enabled for GET requests using formats of HTML, TSV, CSV
Comma Separated list of columns to exclude from results.
Currently only enabled for GET requests using formats of HTML, TSV, CSV Note: Exclude field will be ignored if fields are supplied.
(YYYY-MM-DD HH:mm:ss)
(YYYY-MM-DD HH:mm:ss)
Set to '1' if you want only deleted records, '0' for non-deleted records.
(YYYY-MM-DD HH:mm:ss), if supplied, only records modified more recent than this datetime will be returned
authored by
  

vehicle_issue_note
HTTP POST
this method creates a new vehicle_issue_note, and if succesful will return the details of the new vehicle_issue_note.
@return ARRAY
Field Description
(required)
  

vehicle_issue_note: update an existing vehicle_issue_note file
HTTP PUT
@return ARRAY
Field Description
(required)
  

Returns information about 'issue severity'
This is lookup table, as issue severity does not change
@return ARRAY of resource categories Returns a single record if the vehicle_issue_severity_id is provided.
Field Description
Comma Separated list of columns to restrict results to. Order is kept. If field does not exist then column will be included, but a blank result will be returned
eg: "name,description,created_by"

Currently only enabled for GET requests using formats of HTML, TSV, CSV
Comma Separated list of columns to exclude from results.
Currently only enabled for GET requests using formats of HTML, TSV, CSV Note: Exclude field will be ignored if fields are supplied.
Primary key
  

Deletes a vehicle_issue.
@return array Deleted vehicle_issue record.
Field Description
(required)
  

Gets vehicle issues.
@return ARRAY of vehicle issues
Field Description
Comma Separated list of columns to restrict results to. Order is kept. If field does not exist then column will be included, but a blank result will be returned
eg: "name,description,created_by"

Currently only enabled for GET requests using formats of HTML, TSV, CSV
Comma Separated list of columns to exclude from results.
Currently only enabled for GET requests using formats of HTML, TSV, CSV Note: Exclude field will be ignored if fields are supplied.
Set to '0' to undelete the record.
(YYYY-MM-DD)
(YYYY-MM-DD)
(YYYY-MM-DD)
  

Creates a new vehicle_issue and returns its details.
@return array
Field Description
(required)
(required)
(required) person_id of who reported issue
(YYYY-MM-DD) (required) Date issue was reported.
(required)
  

Update an existing vehicle_issue.
@return array
Field Description
(required)
  

Returns information about the 'vehicle' filterable by the fields described below.
Resource response fields:
@return ARRAY of vehicles Returns a single record if the vehicle_id is provided.
Field Description
Comma Separated list of columns to restrict results to. Order is kept. If field does not exist then column will be included, but a blank result will be returned
eg: "name,description,created_by"

Currently only enabled for GET requests using formats of HTML, TSV, CSV
Comma Separated list of columns to exclude from results.
Currently only enabled for GET requests using formats of HTML, TSV, CSV Note: Exclude field will be ignored if fields are supplied.
(1=Unknown, 2=Petrol, 3= Diesel, 4=LPG, 5=Electric)
(1= is a management vehicle, 0=is not a management vehicle)
(YYYY-MM-DD HH:mm:ss), if supplied, only records modified more recent than this datetime will be returned
The resource describes what kind of vehicle it is and how it is used. It could be a truck, a line marking vehilce, a Truck mounted antenuator etc. have a look at tthe resource API to see all available resources
Customised category for vehicles
(1= automatic, 0=manual)
  

Update an existing Vehicle
A small number of fields can be updated using a HTTP PUT request
so that servicing and odo details can be updated.
HTTP PUT
@return ARRAY containing all vehicle details. Same as get request if vehicle_id is specified
Field Description
(required)
(YYYY_MM_DD)
Next service due on (YYYY-MM-DD)