Skip to main content

Update Vehicle Status

PATCH 

https://secure.fleetio.com/api/v1/vehicle_statuses/:id

Update a Vehicle Status

Request

Path Parameters

    id stringrequired

    Possible values: Value must match regular expression ^[0-9]+$

    The id of the relevant record

Body

    namestring

    The name of the Vehicle Status. Must be unique.

    Possible values: <= 255 characters

    defaultboolean

    Whether this should be the default Vehicle Status for new Vehicles.

    Default value: false

Responses

OK

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 -L -X PATCH 'https://secure.fleetio.com/api/v1/vehicle_statuses/:id' \
-H 'Content-Type: application/json' \
-H 'Authorization: <Authorization>' \
-H 'Account-Token: <Authorization>' \
-d '{
"name": "string",
"default": false
}'
Request Collapse all
Base URL
https://secure.fleetio.com/api
Auth
Parameters
— pathrequired
Body
{
  "name": "string",
  "default": false
}
ResponseClear

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