Update Tire
PATCHhttps://secure.fleetio.com/api/v1/tires/:id
Updates a Tire
Request
Path Parameters
Possible values: Value must match regular expression ^[0-9]+$
The id of the relevant record
- application/json
Body
Possible values: >= 1
Possible values: >= 1
Pressure
Tread Depth
Responses
- 200
- 401
- 403
- 422
OK
- application/json
- Schema
- Example (auto)
Schema
The id of the Tire
1
A Tire Position
id. The existence of a tire_position_id
indicates this Tire
is currently installed. Similiarly, if this value is null
, then this Tire
is not currently installed on a Vehicle
.
1
A Part
id.
1
An Axle Configuration
id. The existence of a axle_config_id
indicates this Tire
is currently installed. Similiarly, if this value is null
, then this Tire
is not currently installed on a Vehicle
.
1
The air pressure of the Tire
in pounds per square inch (PSI)
32
The tread depth of the Tire
in /32 inch.
12
The current meter of the Tire
.
19250
When the Tire
was created
When the Tire
was last updated
{
"id": 1,
"tire_position_id": 1,
"part_id": 1,
"axle_config_id": 1,
"pressure": 32,
"tread_depth": 12,
"current_meter": 19250,
"created_at": "2024-07-29T15:51:28.071Z",
"updated_at": "2024-07-29T15:51:28.071Z"
}
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"
]
}
}
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
curl -L -X PATCH 'https://secure.fleetio.com/api/v1/tires/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Token <Authorization>' \
-H 'Account-Token: <Authorization>' \
-d '{
"part_id": 0,
"tire_position_id": 0,
"pressure": 0,
"tread_depth": 0
}'