Update Work Order
PATCHhttps://secure.fleetio.com/api/v2/work_orders/:id
Update a Work Order
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 this Work Order was issued. We recommend using ISO-8601 formatted dates to avoid ambiguity.
2023-03-14T13:46:27-06:00
The date and time at which this Work Order was started. We recommend using ISO-8601 formatted dates to avoid ambiguity.
2023-03-14T13:46:27-06:00
The date and time at which this Work Order was completed. We recommend using ISO-8601 formatted dates to avoid ambiguity.
2023-03-14T13:46:27-06:00
Possible values: >= 1
The number of the Invoice
associated with this Work Order.
Possible values: <= 255 characters
Possible values: >= 1
The name of the Vendor
associated with this Work Order.
Possible values: <= 255 characters
Possible values: >= 1
The name of the Vehicle
associated with this Work Order.
Possible values: <= 255 characters
The type of discount applied to this Work Order.
Possible values: [percentage
, amount
]
The discount amount in decimal currency units applied to this Work Order.
The percentage of the discount applied to this Work Order.
Used if discount_type
is set to percentage
.
The percentage of the parts markup applied to this Work Order.
Used if parts_markup_type
is set to percentage
.
Note: Parts markup fields are only writiable for Premium tier Fleetio Plan.
The type of parts markup to apply to this record.
Note: Parts markup fields are only writiable for Premium tier Fleetio Plan.
Possible values: [fixed
, percentage
]
percentage
The amount of the parts markup applied to this Work Order.
Used if parts_markup_type
is set to fixed
.
Note: Parts markup fields are only writiable for Premium tier Fleetio Plan.
The percentage of the labor markup applied to this Work Order.
Used if labor_markup_type
is set to percentage
.
Note: Labor markup fields are only writiable for Premium tier Fleetio Plan.
The type of labor markup to apply to this record.
Note: Labor markup fields are only writiable for Premium tier Fleetio Plan.
Possible values: [fixed
, percentage
]
percentage
The amount of the labor markup applied to this Work Order.
Used if labor_markup_type
is set to fixed
.
Note: Labor markup fields are only writiable for Premium tier Fleetio Plan.
The percentage of the first tax applied to this Work Order.
Used if tax_1_type
is set to percentage
.
The type of tax to apply to this record.
Possible values: [fixed
, percentage
]
percentage
The amount of the first tax applied to this Work Order.
Used if tax_1_type
is set to amount
.
The percentage of the second tax applied to this Work Order.
Used if tax_2_type
is set to percentage
.
The type of tax to apply to this record.
Possible values: [fixed
, percentage
]
percentage
The amount of the second tax applied to this Work Order.
Used if tax_2_type
is set to amount
.
Possible values: >= 1
Possible values: >= 1
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
The number of the Purchase Order
associated with this Work Order.
A description of this Work Order.
The number to be applied to this Work Order. Must be unique.
meter_entry_attributes object
secondary_meter_entry_attributes object
starting_meter_entry_attributes object
ending_meter_entry_attributes object
starting_secondary_meter_entry_attributes object
ending_secondary_meter_entry_attributes object
*Full details on working with Custom Fields here.
Use start meter for completion meter?
Possible values: >= 1
The date and time at which this Work Order is scheduled. We recommend using ISO-8601 formatted dates to avoid ambiguity.
The date and time at which this Work Order is expected to be completed. We recommend using ISO-8601 formatted dates to avoid ambiguity.
comments_attributes object[]
work_order_line_items_attributes object[]
work_order_sub_line_items_attributes object[]
A list of Issues
to be added to this Work Order.
Possible values: >= 1
A list of Labels
to be added to this Work Order.
Possible values: >= 1
documents_attributes object[]
images_attributes object[]
Responses
- 200
- 401
- 403
- 404
- 422
- 500
OK
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 1
The date and time at which this record was created.
2023-03-14T13:46:27-06:00
The date and time at which this record was most recently updated.
2023-03-14T13:46:27-06:00
The unique number of this Work Order.
The date and time at which the Work Order was completed.
2023-03-14T13:46:27-06:00
A description of this Work Order.
Indicates whether or not the ending meter is the same as the starting meter.
The number of seconds elapsed between beginning this Work Order and completing it.
The number of the Invoice
associated with this Work Order.
The id of the User
who created this Work Order.
Indicates whether this Work Order is currently active or has already been completed.
Possible values: [active
, completed
]
The date and time at which the Work Order was issued.
2023-03-14T13:46:27-06:00
Possible values: >= 1
The name of the Contact
associated with the User
who issued this Work
Order.
Possible values: >= 1
The name of the Contact
currently assigned to this Work Order.
The number of any Purchase Order
associated with this Work Order.
The date and time at which the Work Order was started.
2023-03-14T13:46:27-06:00
The date and time at which the Work Order is expected to be completed.
2023-03-14T13:46:27-06:00
The URL of the image associated with the Contact
currently assigned to this Work Order.
work_order_sub_line_items object[]required
The date and time at which the Work Order was scheduled.
2023-03-14T13:46:27-06:00
Possible values: >= 1
The name of the Vehicle
associated with this Work Order.
Possible values: >= 1
The name of the Vendor
associated with this Work Order.
Possible values: >= 1
The name of the Work Order Status
associated with this Work Order.
The color of the Work Order Status
seen in the UI.
*Full details on working with Custom Fields here.
work_order_line_items object[]required
labor_time_entries object[]required
meter_entry objectnullable
starting_meter_entry objectnullable
ending_meter_entry objectnullable
secondary_meter_entry objectnullable
starting_secondary_meter_entry objectnullable
ending_secondary_meter_entry objectnullable
attachment_permissions objectnullable
vmrs_repair_priority_class objectnullablerequired
labels object[]required
issues object[]required
The number of Users
watching this Work Order.
Indicates whether the current User
is watching this Work Order.
The type of discount applied to this record.
Possible values: [fixed
, percentage
]
percentage
The discount percentage. This field should be present when
discount_type
is set to percentage
.
1.23
The discount amount.
1.23
The total cost of parts for this record.
1.23
The total cost of labor for this record.
1.23
The pre-tax subtotal amount.
1.23
The type of tax to apply to this record.
Possible values: [fixed
, percentage
]
percentage
The primary tax percentage amount. This field should be present when
tax_1_type
is set to percentage
.
1.23
The type of tax to apply to this record.
Possible values: [fixed
, percentage
]
percentage
The secondary tax percentage amount. This field should be present when tax_2_type
is
set to percentage
. Note that this secondary tax must be configured in
your Account Settings.
1.23
The primary tax amount.
1.23
The secondary tax amount. Note that this secondary tax must be configured in your Account Settings.
1.23
The type of parts markup applied to the record
Note that this is a readonly value that will default to percentage
for non-premium plans
Possible values: [fixed
, percentage
]
The parts markup amount.
Note that this is a readonly value that will default to 0.0
for non-premium plans
1.23
The parts markup percentage amount. This field should be present when
parts_markup_type
is set to percentage
.
Note that this is a readonly value that will default to 0.0
for non-premium plans
1.23
The type of labor markup applied to the record
Note that this is a readonly value that will default to percentage
for non-premium plans
Possible values: [fixed
, percentage
]
The labor markup amount.
Note that this is a readonly value that will default to 0.0
for non-premium plans
1.23
The labor markup percentage amount. This field should be present when
labor_markup_type
is set to percentage
.
Note that this is a readonly value that will default to 0.0
for non-premium plans
1.23
The total amount.
1.23
The sum, in seconds, of the duration of all labor line items of a completed
Work Order.
comments object[]
The number of comments made on this record.
Possible values: >= 0
images object[]
The number of images attached to this record.
Possible values: >= 0
documents object[]
The number of documents attached to this record.
Possible values: >= 0
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"number": "string",
"completed_at": "2023-03-14T13:46:27-06:00",
"description": "string",
"ending_meter_same_as_start": true,
"duration_in_seconds": 0,
"invoice_number": "string",
"created_by_id": 0,
"state": "active",
"issued_at": "2023-03-14T13:46:27-06:00",
"issued_by_id": 0,
"issued_by_name": "string",
"contact_id": 0,
"contact_name": "string",
"purchase_order_number": "string",
"started_at": "2023-03-14T13:46:27-06:00",
"expected_completed_at": "2023-03-14T13:46:27-06:00",
"contact_image_url": "string",
"work_order_sub_line_items": [
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"description": "string",
"item_id": 0,
"item_type": "Contact",
"work_order_line_item_id": 0,
"quantity": 0,
"part_location_detail_id": 0,
"position": 0,
"item_name": "string",
"unit_cost": 0,
"contact": {
"id": 0,
"created_at": "2024-07-29T15:51:28.071Z",
"updated_at": "2024-07-29T15:51:28.071Z",
"email": "string",
"name": "string",
"first_name": "string",
"middle_name": "string",
"last_name": "string",
"images_count": 0,
"documents_count": 0,
"comments_count": 0,
"group_id": 0,
"group_name": "string",
"group_hierarchy": "Group 1|Group 2|Group 3",
"technician": true,
"vehicle_operator": true,
"employee": true,
"birth_date": "2023-03-14",
"street_address": "123 Main St",
"street_address_line_2": "Apt 1",
"city": "string",
"region": "string",
"postal_code": "string",
"country": "string",
"employee_number": "string",
"job_title": "string",
"license_class": "string",
"license_number": "string",
"license_state": "string",
"license_expiration": "2023-03-14",
"home_phone_number": "string",
"mobile_phone_number": "string",
"work_phone_number": "string",
"other_phone_number": "string",
"start_date": "2024-07-29",
"leave_date": "2024-07-29",
"hourly_labor_rate": 0,
"custom_fields": {},
"attachment_permissions": {
"read_photos": true,
"manage_photos": true,
"read_documents": true,
"manage_documents": true
},
"default_image_url": "string",
"user": {},
"account_membership_id": 0,
"last_api_request": "2024-07-29T15:51:28.071Z",
"last_web_access": "2024-07-29T15:51:28.071Z",
"last_mobile_app_access": "2024-07-29T15:51:28.071Z"
},
"labor_time_entries": [
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"account_id": 0,
"contact_id": 0,
"duration_in_seconds": 0,
"ended_at": "2023-03-14T13:46:27-06:00",
"laborable_id": 0,
"laborable_type": "WorkOrderSubLineItem",
"started_at": "2023-03-14T13:46:27-06:00",
"data": {
"clock_in_latitude": 0,
"clock_in_longitude": 0,
"clock_out_latitude": 0,
"clock_out_longitude": 0
},
"active": true
}
]
},
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"description": "string",
"item_id": 0,
"item_type": "Part",
"work_order_line_item_id": 0,
"quantity": 0,
"part_location_detail_id": 0,
"position": 0,
"item_name": "string",
"unit_cost": 0,
"part": {
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"description": "string",
"manufacturer_part_number": "string",
"measurement_unit_id": 0,
"number": "string",
"part_category_id": 0,
"part_manufacturer_id": 0,
"upc": "string",
"total_quantity": 0,
"custom_fields": {},
"inventory_item": true,
"part_category": {
"id": 0,
"tire_category": true
},
"part_category_name": "string",
"part_manufacturer_name": "string",
"measurement_unit_name": "string",
"unit_cost": 0,
"average_unit_cost": 0,
"part_locations": [
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"active": true,
"aisle": "string",
"available_quantity": 0,
"bin": "string",
"inventory_sets_count": 0,
"has_been_used_in_work_orders": true,
"name": "string",
"part_location_name": "string",
"part_location_id": 0,
"quantity_allocated_to_work_orders": 0,
"quantity_on_order": 0,
"reorder_point": 0,
"reorder_point_enabled": true,
"row": "string",
"track_inventory": true,
"available_quantity_updated_at": "2023-03-14T13:46:27-06:00",
"part_location_archived_at": "2024-07-29T15:51:28.071Z"
}
],
"default_image_url": "string",
"default_image_url_medium": "string",
"default_image_url_small": "string",
"default_image_url_large": "string",
"archived_at": "2023-03-14T13:46:27-06:00",
"attachment_permissions": {
"read_photos": true,
"manage_photos": true,
"read_documents": true,
"manage_documents": true
},
"has_active_inventory_sets": true,
"tire_config": {
"aspect_ratio": 0,
"rim_diameter": 0,
"load_index": 0,
"metric_type": "EU",
"width": 0,
"construction": "B",
"speed_rating": "A1",
"factory_tread_depth": 0,
"minimum_tread_depth": 0,
"life_expectancy": 0
},
"comments": [
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"commentable_type": "Contact",
"commentable_id": 0,
"user_id": 0,
"comment": "string",
"user_full_name": "string",
"user_image_url": "string",
"rich_content": {},
"html_content": "string",
"with_mentions": true
}
],
"comments_count": 0,
"documents": [
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"name": "string",
"description": "string",
"documentable_id": 0,
"documentable_type": "ServiceEntry",
"file_name": "string",
"file_mime_type": "string",
"file_size": 0,
"file_url": "string",
"full_file_url": "string"
}
],
"documents_count": 0,
"images": [
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"imageable_id": 0,
"imageable_type": "ExpenseEntry",
"file_name": "string",
"file_mime_type": "image/jpeg",
"file_size": 0,
"file_url": "string",
"full_url": "string"
}
],
"images_count": 0
}
}
],
"scheduled_at": "2023-03-14T13:46:27-06:00",
"vehicle_id": 0,
"vehicle_name": "string",
"vendor_id": 0,
"vendor_name": "string",
"work_order_status_id": 0,
"work_order_status_name": "string",
"work_order_status_color": "string",
"custom_fields": {},
"work_order_line_items": [
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"description": "string",
"title": "string",
"item_id": 0,
"item_type": "Issue",
"work_order_line_item_id": 0,
"item_name": "string",
"position": 0,
"issues": [
{
"id": 0,
"name": "string"
}
],
"vmrs_reason_for_repair": {
"account_id": 0,
"alias": "string",
"code": "string",
"enabled": true,
"id": 0,
"name": "string",
"repair_type": "string",
"standard": true,
"standard_name": "string",
"type": "string",
"vmrs_standard_reason_for_repair": {}
},
"vmrs_system_group": {
"account_id": 0,
"assembly_code": "string",
"assembly_name": "string",
"code_type": "system_group",
"component_code": "string",
"component_name": "string",
"enabled": true,
"id": 0,
"permissions": {
"destroy": true
},
"standard": true,
"system_code": "string",
"system_group": "string",
"system_group_code": "string",
"system_name": "string",
"type": "string",
"vmrs_standard_system_assembly_component": {}
},
"vmrs_system": {
"account_id": 0,
"assembly_code": "string",
"assembly_name": "string",
"code_type": "system_group",
"component_code": "string",
"component_name": "string",
"enabled": true,
"id": 0,
"permissions": {
"destroy": true
},
"standard": true,
"system_code": "string",
"system_group": "string",
"system_group_code": "string",
"system_name": "string",
"type": "string",
"vmrs_standard_system_assembly_component": {}
},
"vmrs_assembly": {
"account_id": 0,
"assembly_code": "string",
"assembly_name": "string",
"code_type": "system_group",
"component_code": "string",
"component_name": "string",
"enabled": true,
"id": 0,
"permissions": {
"destroy": true
},
"standard": true,
"system_code": "string",
"system_group": "string",
"system_group_code": "string",
"system_name": "string",
"type": "string",
"vmrs_standard_system_assembly_component": {}
},
"vmrs_component": {
"account_id": 0,
"assembly_code": "string",
"assembly_name": "string",
"code_type": "system_group",
"component_code": "string",
"component_name": "string",
"enabled": true,
"id": 0,
"permissions": {
"destroy": true
},
"standard": true,
"system_code": "string",
"system_group": "string",
"system_group_code": "string",
"system_name": "string",
"type": "string",
"vmrs_standard_system_assembly_component": {}
},
"work_order_sub_line_items": [
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"description": "string",
"item_id": 0,
"item_type": "Contact",
"work_order_line_item_id": 0,
"quantity": 0,
"part_location_detail_id": 0,
"position": 0,
"item_name": "string",
"unit_cost": 0,
"contact": {
"id": 0,
"created_at": "2024-07-29T15:51:28.071Z",
"updated_at": "2024-07-29T15:51:28.071Z",
"email": "string",
"name": "string",
"first_name": "string",
"middle_name": "string",
"last_name": "string",
"images_count": 0,
"documents_count": 0,
"comments_count": 0,
"group_id": 0,
"group_name": "string",
"group_hierarchy": "Group 1|Group 2|Group 3",
"technician": true,
"vehicle_operator": true,
"employee": true,
"birth_date": "2023-03-14",
"street_address": "123 Main St",
"street_address_line_2": "Apt 1",
"city": "string",
"region": "string",
"postal_code": "string",
"country": "string",
"employee_number": "string",
"job_title": "string",
"license_class": "string",
"license_number": "string",
"license_state": "string",
"license_expiration": "2023-03-14",
"home_phone_number": "string",
"mobile_phone_number": "string",
"work_phone_number": "string",
"other_phone_number": "string",
"start_date": "2024-07-29",
"leave_date": "2024-07-29",
"hourly_labor_rate": 0,
"custom_fields": {},
"attachment_permissions": {
"read_photos": true,
"manage_photos": true,
"read_documents": true,
"manage_documents": true
},
"default_image_url": "string",
"user": {},
"account_membership_id": 0,
"last_api_request": "2024-07-29T15:51:28.071Z",
"last_web_access": "2024-07-29T15:51:28.071Z",
"last_mobile_app_access": "2024-07-29T15:51:28.071Z"
},
"labor_time_entries": [
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"account_id": 0,
"contact_id": 0,
"duration_in_seconds": 0,
"ended_at": "2023-03-14T13:46:27-06:00",
"laborable_id": 0,
"laborable_type": "WorkOrderSubLineItem",
"started_at": "2023-03-14T13:46:27-06:00",
"data": {
"clock_in_latitude": 0,
"clock_in_longitude": 0,
"clock_out_latitude": 0,
"clock_out_longitude": 0
},
"active": true
}
]
},
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"description": "string",
"item_id": 0,
"item_type": "Part",
"work_order_line_item_id": 0,
"quantity": 0,
"part_location_detail_id": 0,
"position": 0,
"item_name": "string",
"unit_cost": 0,
"part": {
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"description": "string",
"manufacturer_part_number": "string",
"measurement_unit_id": 0,
"number": "string",
"part_category_id": 0,
"part_manufacturer_id": 0,
"upc": "string",
"total_quantity": 0,
"custom_fields": {},
"inventory_item": true,
"part_category": {
"id": 0,
"tire_category": true
},
"part_category_name": "string",
"part_manufacturer_name": "string",
"measurement_unit_name": "string",
"unit_cost": 0,
"average_unit_cost": 0,
"part_locations": [
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"active": true,
"aisle": "string",
"available_quantity": 0,
"bin": "string",
"inventory_sets_count": 0,
"has_been_used_in_work_orders": true,
"name": "string",
"part_location_name": "string",
"part_location_id": 0,
"quantity_allocated_to_work_orders": 0,
"quantity_on_order": 0,
"reorder_point": 0,
"reorder_point_enabled": true,
"row": "string",
"track_inventory": true,
"available_quantity_updated_at": "2023-03-14T13:46:27-06:00",
"part_location_archived_at": "2024-07-29T15:51:28.071Z"
}
],
"default_image_url": "string",
"default_image_url_medium": "string",
"default_image_url_small": "string",
"default_image_url_large": "string",
"archived_at": "2023-03-14T13:46:27-06:00",
"attachment_permissions": {
"read_photos": true,
"manage_photos": true,
"read_documents": true,
"manage_documents": true
},
"has_active_inventory_sets": true,
"tire_config": {
"aspect_ratio": 0,
"rim_diameter": 0,
"load_index": 0,
"metric_type": "EU",
"width": 0,
"construction": "B",
"speed_rating": "A1",
"factory_tread_depth": 0,
"minimum_tread_depth": 0,
"life_expectancy": 0
},
"comments": [
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"commentable_type": "Contact",
"commentable_id": 0,
"user_id": 0,
"comment": "string",
"user_full_name": "string",
"user_image_url": "string",
"rich_content": {},
"html_content": "string",
"with_mentions": true
}
],
"comments_count": 0,
"documents": [
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"name": "string",
"description": "string",
"documentable_id": 0,
"documentable_type": "ServiceEntry",
"file_name": "string",
"file_mime_type": "string",
"file_size": 0,
"file_url": "string",
"full_file_url": "string"
}
],
"documents_count": 0,
"images": [
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"imageable_id": 0,
"imageable_type": "ExpenseEntry",
"file_name": "string",
"file_mime_type": "image/jpeg",
"file_size": 0,
"file_url": "string",
"full_url": "string"
}
],
"images_count": 0
}
}
],
"subtotal": 1.23,
"subtotal_cents": 0,
"labor_cost": 1.23,
"parts_cost": 1.23,
"parts_cost_cents": 0,
"labor_cost_cents": 0
}
],
"labor_time_entries": [
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"account_id": 0,
"contact_id": 0,
"duration_in_seconds": 0,
"ended_at": "2023-03-14T13:46:27-06:00",
"laborable_id": 0,
"laborable_type": "WorkOrderSubLineItem",
"started_at": "2023-03-14T13:46:27-06:00",
"data": {
"clock_in_latitude": 0,
"clock_in_longitude": 0,
"clock_out_latitude": 0,
"clock_out_longitude": 0
},
"active": true
}
],
"meter_entry": {
"id": 0,
"created_at": "2024-07-29T15:51:28.071Z",
"updated_at": "2024-07-29T15:51:28.071Z",
"auto_voided_at": "2023-03-14T13:46:27-06:00",
"category": "starting",
"meter_type": "secondary",
"meterable_id": 0,
"meterable_type": "FuelEntry",
"value": "string",
"vehicle_id": 0,
"void": false,
"type": "GpsMeterEntry",
"date": "2023-03-14"
},
"starting_meter_entry": {
"id": 0,
"created_at": "2024-07-29T15:51:28.071Z",
"updated_at": "2024-07-29T15:51:28.071Z",
"auto_voided_at": "2023-03-14T13:46:27-06:00",
"category": "starting",
"meter_type": "secondary",
"meterable_id": 0,
"meterable_type": "FuelEntry",
"value": "string",
"vehicle_id": 0,
"void": false,
"type": "GpsMeterEntry",
"date": "2023-03-14"
},
"ending_meter_entry": {
"id": 0,
"created_at": "2024-07-29T15:51:28.071Z",
"updated_at": "2024-07-29T15:51:28.071Z",
"auto_voided_at": "2023-03-14T13:46:27-06:00",
"category": "starting",
"meter_type": "secondary",
"meterable_id": 0,
"meterable_type": "FuelEntry",
"value": "string",
"vehicle_id": 0,
"void": false,
"type": "GpsMeterEntry",
"date": "2023-03-14"
},
"secondary_meter_entry": {
"id": 0,
"created_at": "2024-07-29T15:51:28.071Z",
"updated_at": "2024-07-29T15:51:28.071Z",
"auto_voided_at": "2023-03-14T13:46:27-06:00",
"category": "starting",
"meter_type": "secondary",
"meterable_id": 0,
"meterable_type": "FuelEntry",
"value": "string",
"vehicle_id": 0,
"void": false,
"type": "GpsMeterEntry",
"date": "2023-03-14"
},
"starting_secondary_meter_entry": {
"id": 0,
"created_at": "2024-07-29T15:51:28.071Z",
"updated_at": "2024-07-29T15:51:28.071Z",
"auto_voided_at": "2023-03-14T13:46:27-06:00",
"category": "starting",
"meter_type": "secondary",
"meterable_id": 0,
"meterable_type": "FuelEntry",
"value": "string",
"vehicle_id": 0,
"void": false,
"type": "GpsMeterEntry",
"date": "2023-03-14"
},
"ending_secondary_meter_entry": {
"id": 0,
"created_at": "2024-07-29T15:51:28.071Z",
"updated_at": "2024-07-29T15:51:28.071Z",
"auto_voided_at": "2023-03-14T13:46:27-06:00",
"category": "starting",
"meter_type": "secondary",
"meterable_id": 0,
"meterable_type": "FuelEntry",
"value": "string",
"vehicle_id": 0,
"void": false,
"type": "GpsMeterEntry",
"date": "2023-03-14"
},
"attachment_permissions": {
"read_photos": true,
"manage_photos": true,
"read_documents": true,
"manage_documents": true
},
"vmrs_repair_priority_class": {
"id": 0,
"code": "string",
"name": "string",
"color": "string"
},
"labels": [
{
"id": 0,
"name": "string"
}
],
"issues": [
{
"id": 0,
"name": "string"
}
],
"watchers_count": 0,
"is_watched": true,
"discount_type": "percentage",
"discount_percentage": 1.23,
"discount": 1.23,
"parts_subtotal": 1.23,
"labor_subtotal": 1.23,
"subtotal": 1.23,
"tax_1_type": "percentage",
"tax_1_percentage": 1.23,
"tax_2_type": "percentage",
"tax_2_percentage": 1.23,
"tax_1": 1.23,
"tax_2": 1.23,
"parts_markup_type": "fixed",
"parts_markup": 1.23,
"parts_markup_percentage": 1.23,
"labor_markup_type": "fixed",
"labor_markup": 1.23,
"labor_markup_percentage": 1.23,
"total_amount": 1.23,
"labor_time_in_seconds": 0,
"comments": [
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"commentable_type": "Contact",
"commentable_id": 0,
"user_id": 0,
"comment": "string",
"user_full_name": "string",
"user_image_url": "string",
"rich_content": {},
"html_content": "string",
"with_mentions": true
}
],
"comments_count": 0,
"images": [
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"imageable_id": 0,
"imageable_type": "ExpenseEntry",
"file_name": "string",
"file_mime_type": "image/jpeg",
"file_size": 0,
"file_url": "string",
"full_url": "string"
}
],
"images_count": 0,
"documents": [
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"name": "string",
"description": "string",
"documentable_id": 0,
"documentable_type": "ServiceEntry",
"file_name": "string",
"file_mime_type": "string",
"file_size": 0,
"file_url": "string",
"full_file_url": "string"
}
],
"documents_count": 0
}
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/work_orders/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Token <Authorization>' \
-H 'Account-Token: <Authorization>' \
-d '{
"issued_at": "2023-03-14T13:46:27-06:00",
"started_at": "2023-03-14T13:46:27-06:00",
"completed_at": "2023-03-14T13:46:27-06:00",
"work_order_status_id": 0,
"invoice_number": "string",
"vendor_id": 0,
"vendor_name": "string",
"vehicle_id": 0,
"vehicle_name": "string",
"discount_type": "percentage",
"discount": 0,
"discount_percentage": 0,
"parts_markup_percentage": 0,
"parts_markup_type": "percentage",
"parts_markup": 0,
"labor_markup_percentage": 0,
"labor_markup_type": "percentage",
"labor_markup": 0,
"tax_1_percentage": 0,
"tax_1_type": "percentage",
"tax_1": 0,
"tax_2_percentage": 0,
"tax_2_type": "percentage",
"tax_2": 0,
"issued_by_id": 0,
"contact_id": 0,
"label_list": "High Priority",
"purchase_order_number": "string",
"description": "string",
"number": 0,
"meter_entry_attributes": {
"value": "108043",
"void": true
},
"secondary_meter_entry_attributes": {
"value": "108043",
"void": true
},
"starting_meter_entry_attributes": {
"value": "108043",
"void": true
},
"ending_meter_entry_attributes": {
"value": "108043",
"void": true
},
"starting_secondary_meter_entry_attributes": {
"value": "108043",
"void": true
},
"ending_secondary_meter_entry_attributes": {
"value": "108043",
"void": true
},
"custom_fields": {},
"ending_meter_same_as_start": true,
"vmrs_repair_priority_class_id": 0,
"scheduled_at": "2024-07-29T15:51:28.071Z",
"expected_completed_at": "2024-07-29T15:51:28.071Z",
"comments_attributes": [
{
"title": "string",
"comment": "string"
}
],
"work_order_line_items_attributes": [
{
"id": 0,
"item_type": "Issue",
"item_name": "string",
"description": "string",
"item_id": 0,
"labor_cost": 0,
"parts_cost": 0,
"position": 0,
"subtotal": 0,
"type": "WorkOrderServiceTaskLineItem",
"vmrs_reason_for_repair_id": 0,
"vmrs_system_group_id": 0,
"vmrs_system_id": 0,
"vmrs_assembly_id": 0,
"vmrs_component_id": 0,
"issue_ids": [
0
],
"work_order_sub_line_items_attributes": [
{
"id": 0,
"type": "WorkOrderPartLineItem",
"item_id": 0,
"item_type": "Part",
"quantity": 0,
"part_location_detail_id": 0,
"position": 0,
"description": "string",
"inventory_set_id": 0,
"vmrs_reason_for_repair_id": 0,
"vmrs_system_group_id": 0,
"vmrs_system_id": 0,
"vmrs_assembly_id": 0,
"vmrs_component_id": 0,
"labor_time_entries_attributes": [
{
"started_at": "2024-07-29T15:51:28.071Z",
"ended_at": "2024-07-29T15:51:28.071Z",
"contact_id": 0
}
]
}
],
"work_order_part_line_items_attributes": [
{
"id": 0,
"type": "WorkOrderPartLineItem",
"item_id": 0,
"item_type": "Part",
"quantity": 0,
"part_location_detail_id": 0,
"position": 0,
"description": "string",
"inventory_set_id": 0,
"vmrs_reason_for_repair_id": 0,
"vmrs_system_group_id": 0,
"vmrs_system_id": 0,
"vmrs_assembly_id": 0,
"vmrs_component_id": 0,
"labor_time_entries_attributes": [
{
"started_at": "2024-07-29T15:51:28.071Z",
"ended_at": "2024-07-29T15:51:28.071Z",
"contact_id": 0
}
]
}
],
"work_order_labor_line_items_attributes": [
{
"id": 0,
"type": "WorkOrderPartLineItem",
"item_id": 0,
"item_type": "Part",
"quantity": 0,
"part_location_detail_id": 0,
"position": 0,
"description": "string",
"inventory_set_id": 0,
"vmrs_reason_for_repair_id": 0,
"vmrs_system_group_id": 0,
"vmrs_system_id": 0,
"vmrs_assembly_id": 0,
"vmrs_component_id": 0,
"labor_time_entries_attributes": [
{
"started_at": "2024-07-29T15:51:28.071Z",
"ended_at": "2024-07-29T15:51:28.071Z",
"contact_id": 0
}
]
}
]
}
],
"work_order_sub_line_items_attributes": [
{
"id": 0,
"type": "WorkOrderPartLineItem",
"item_id": 0,
"item_type": "Part",
"quantity": 0,
"part_location_detail_id": 0,
"position": 0,
"description": "string",
"inventory_set_id": 0,
"vmrs_reason_for_repair_id": 0,
"vmrs_system_group_id": 0,
"vmrs_system_id": 0,
"vmrs_assembly_id": 0,
"vmrs_component_id": 0,
"labor_time_entries_attributes": [
{
"started_at": "2024-07-29T15:51:28.071Z",
"ended_at": "2024-07-29T15:51:28.071Z",
"contact_id": 0
}
]
}
],
"issue_ids": [
0
],
"label_ids": [
0
],
"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
}
]
}'