Update Work Order
PATCHhttps://secure.fleetio.com/api/v1/work_orders/:id
This endpoint is deprecated and will be removed in a future version. Please use the new v2 endpoint instead.
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 name of the Work Order Status
associated with this Work Order.
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 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
*Full details on working with Custom Fields here.
Use start meter for completion meter?
Possible values: >= 1
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/v1/work_orders/:id' \
-H 'Content-Type: 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,
"work_order_status_name": "string",
"invoice_number": "string",
"vendor_id": 0,
"vendor_name": "string",
"vehicle_id": 0,
"vehicle_name": "string",
"discount_type": "percentage",
"discount": 0,
"discount_percentage": 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
},
"custom_fields": {},
"ending_meter_same_as_start": true,
"vmrs_repair_priority_class_id": 0
}'