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
curl -L -X PATCH 'https://secure.fleetio.com/api/v2/service_entries/:id' \
-H 'Content-Type: application/json' \
-H 'Authorization: Token <Authorization>' \
-H 'Account-Token: <Authorization>' \
-d '{
"completed_at": "2023-03-14T13:46:27-06:00",
"started_at": "2023-03-14T13:46:27-06:00",
"vehicle_id": 0,
"vehicle_vin": "string",
"vendor_id": 0,
"reference": "string",
"label_list": "High Priority",
"general_notes": "string",
"vmrs_repair_priority_class_id": 0,
"custom_fields": {},
"meter_entry_attributes": {
"value": "108043",
"void": true
},
"secondary_meter_entry_attributes": {
"value": "108043",
"void": true
},
"service_entry_line_items_attributes": [
{
"id": 0,
"service_task_id": 0,
"type": "ServiceEntryServiceTaskLineItem",
"description": "string",
"labor_cost": 0,
"parts_cost": 0,
"subtotal": 0,
"service_entry_line_item_id": 0,
"issue_ids": [
"string"
],
"vmrs_reason_for_repair_id": 0,
"vmrs_system_group_id": 0,
"vmrs_system_id": 0,
"vmrs_component_id": 0,
"vmrs_assembly_id": 0
}
],
"issue_ids": [
0
],
"service_task_ids": [
0
],
"comments_attributes": [
{
"title": "string",
"comment": "string"
}
],
"documents_attributes": [
{
"name": "string",
"file_url": "string",
"file_mime_type": "string",
"file_name": "string",
"file_size": 0
}
],
"images_attributes": [
{
"name": "string",
"file_url": "string",
"file_mime_type": "string",
"file_name": "string",
"file_size": 0
}
],
"labor_subtotal": 0,
"parts_subtotal": 0,
"subtotal": 0,
"discount": 0,
"discount_percentage": 0,
"discount_type": "percentage",
"tax_1": 0,
"tax_1_percentage": 0,
"tax_1_type": "percentage",
"tax_2": 0,
"tax_2_percentage": 0,
"tax_2_type": "percentage",
"total_amount": 0
}'