Update Service Entry
PATCHhttps://secure.fleetio.com/api/v2/service_entries/:id
Update a Service Entry
Request
Path Parameters
Possible values: Value must match regular expression ^[0-9]+$
The id of the relevant record
- application/json
Body
The date and time at which the Service Entry was completed. We recommend using ISO-8601 formatted dates to avoid ambiguity.
2023-03-14T13:46:27-06:00
The date and time at which the Service Entry was started. We recommend using ISO-8601 formatted dates to avoid ambiguity.
2023-03-14T13:46:27-06:00
Possible values: >= 1
The VIN of the Vehicle
associated with this Service Entry.
Possible values: <= 17 characters
Possible values: >= 1
A reference number for this Service Entry.
Possible values: <= 255 characters
A comma separated list of tags associated with this record. The only
delimiter allowed is a comma (,
). Please remove any commas from your
labels before saving the record.
Possible values: <= 255 characters
High Priority
Any general notes about this Service Entry.
Possible values: >= 1
*Full details on working with Custom Fields here.
meter_entry_attributes object
secondary_meter_entry_attributes object
service_entry_line_items_attributes object[]
The IDs of any Issues associated with this Service Entry.
Possible values: >= 1
The IDs of any Service Tasks associated with this Service Entry.
Possible values: >= 1
comments_attributes object[]
documents_attributes object[]
images_attributes object[]
The total cost of labor for this Service Entry.
This is calculated by summing the labor_cost
of each Service Entry Line Item
.
The total cost of Parts
for this Service Entry.
This is calculated by summing the parts_cost
of each Service Entry Line Item
.
The subtotal amount of this Service Entry before any discounts or taxes.
This is calculated by summing the subtotal
of each Service Entry Line Item
.
The total discount amount for this Service Entry.
The total discount percentage for this Service Entry.
The type of discount applied to this record.
Possible values: [fixed
, percentage
]
percentage
The first tax amount for this Service Entry.
The first tax percentage for this Service Entry.
The type of tax to apply to this record.
Possible values: [fixed
, percentage
]
percentage
The second tax amount for this Service Entry.
The second tax percentage for this Service Entry.
The type of tax to apply to this record.
Possible values: [fixed
, percentage
]
percentage
The grand total of this Service Entry.
Responses
- 204
- 401
- 403
- 404
- 422
- 500
OK
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"
}
The requested resource could not be located
- 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"
]
}
}
Something unexpected happened
- 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"
}
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