Update Work Order
This endpoint is deprecated and will be removed in a future version. Please use the new v2 endpoint instead.
Update a Work Order
Path Parameters
- id string required
Possible values: Value must match regular expression
^[0-9]+$
The id of the relevant record
- application/json
Request Body
- issued_at date-time
The date and time at which this Work Order was issued. We recommend using ISO-8601 formatted dates to avoid ambiguity.
- started_at date-time
The date and time at which this Work Order was started. We recommend using ISO-8601 formatted dates to avoid ambiguity.
- completed_at date-time
The date and time at which this Work Order was completed. We recommend using ISO-8601 formatted dates to avoid ambiguity.
- work_order_status_id integer
Possible values:
>= 1
- work_order_status_name string
The name of the
Work Order Status
associated with this Work Order. - invoice_number string
Possible values:
<= 255 characters
The number of the
Invoice
associated with this Work Order. - vendor_id integer
Possible values:
>= 1
- vendor_name string
Possible values:
<= 255 characters
The name of the
Vendor
associated with this Work Order. - vehicle_id integer
Possible values:
>= 1
- vehicle_name string
Possible values:
<= 255 characters
The name of the
Vehicle
associated with this Work Order. - discount_type string
Possible values: [
percentage
,amount
]The type of discount applied to this Work Order.
- discount float
The discount amount in decimal currency units applied to this Work Order.
- discount_percentage float
The percentage of the discount applied to this Work Order. Used if
discount_type
is set topercentage
. - tax_1_percentage float
The percentage of the first tax applied to this Work Order. Used if
tax_1_type
is set topercentage
. - tax_1_type string
Possible values: [
fixed
,percentage
]Default value:
percentage
The type of tax to apply to this record.
- tax_1 float
The amount of the first tax applied to this Work Order. Used if
tax_1_type
is set toamount
. - tax_2_percentage float
The percentage of the second tax applied to this Work Order. Used if
tax_2_type
is set topercentage
. - tax_2_type string
Possible values: [
fixed
,percentage
]Default value:
percentage
The type of tax to apply to this record.
- tax_2 float
The amount of the second tax applied to this Work Order. Used if
tax_2_type
is set toamount
. - issued_by_id integer
Possible values:
>= 1
- contact_id integer
Possible values:
>= 1
- label_list string
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. - purchase_order_number string
The number of the
Purchase Order
associated with this Work Order. - description string
A description of this Work Order.
- number integer
The number to be applied to this Work Order. Must be unique.
meter_entry_attributes object
A Work Order may also be associated with a Meter Entry.
value floatThe value is the actual number on the meter that increments over time. The unit is determined by the configured
meter_unit
on the associated Vehicle.void booleanIf you attempt to save a meter value, which is too high or too low, Fleetio's validation rules will reject it. If you need to bypass this validation, you may mark an entry as void.
secondary_meter_entry_attributes object
A Work Order may also be associated with a secondary Meter Entry.
value floatThe value is the actual number on the meter that increments over time. The unit is determined by the configured
meter_unit
on the associated Vehicle.void booleanIf you attempt to save a meter value, which is too high or too low, Fleetio's validation rules will reject it. If you need to bypass this validation, you may mark an entry as void.
- custom_fields object
*Full details on working with Custom Fields here.
- ending_meter_same_as_start boolean
Use start meter for completion meter?
- vmrs_repair_priority_class_id integer
Possible values:
>= 1
- 204
- 401
- 403
- 404
- 422
- 500
OK
Request could not be authenticated
- application/json
- Schema
- Example (from schema)
Schema
- status integer
Possible values:
>= 400
and<= 599
- title string
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.
- detail string
A human-readable explanation specific to this occurrence of the problem.
- instance string
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 (from schema)
Schema
- status integer
Possible values:
>= 400
and<= 599
- title string
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.
- detail string
A human-readable explanation specific to this occurrence of the problem.
- instance string
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 (from schema)
Schema
- status integer
Possible values:
>= 400
and<= 599
- title string
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.
- detail string
A human-readable explanation specific to this occurrence of the problem.
- instance string
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 (from schema)
- Example
Schema
errors object
typeitems string
{
"errors": {}
}
{
"errors": {
"field1": [
"error1",
"error2"
],
"field2": [
"error3"
]
}
}
Something unexpected happened
- application/json
- Schema
- Example (from schema)
Schema
- status integer
Possible values:
>= 400
and<= 599
- title string
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.
- detail string
A human-readable explanation specific to this occurrence of the problem.
- instance string
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"
}