Update Work Order
Update a Work Order
Path Parameters
- work_order_id string required
Possible values: Value must match regular expression
^[0-9]+$
The id of the associated Work Order
- id string required
Possible values: Value must match regular expression
^[0-9]+$
The id of the relevant record
- application/json
Request Body
- type string
Possible values: [
WorkOrderServiceTaskLineItem
,WorkOrderFreeTextLineItem
] - item_type string
Possible values: [
Issue
,ServiceTask
]The Type of the item associated with the Work Order Line Item
- item_id integer
The ID of the item associated with this Work Order Line Item.
- description string
- issue_ids integer[]
The IDs of any
Issues
associated with this Work Order Line Item. - labor_cost float
The cost of labor of this line item.
- parts_cost float
The cost of
Parts
of this line item. - subtotal float
The subtotal of this line item.
work_order_line_items_attributes object[]
type stringPossible values: [
WorkOrderServiceTaskLineItem
,WorkOrderFreeTextLineItem
]item_type stringPossible values: [
ServiceTask
]item_id integerdescription stringissue_ids integer[]labor_cost floatparts_cost floatsubtotal floatwork_order_sub_line_items_attributes object[]
type stringPossible values: [
WorkOrderPartLineItem
,WorkOrderLaborLineItem
]item_type stringPossible values: [
Part
,Contact
]item_id integerdescription stringunit_cost floatsubtotal floatwork_order_id integerposition integerquantity floatwork_order_part_line_items_attributes object[]
type stringPossible values: [
WorkOrderPartLineItem
,WorkOrderLaborLineItem
]item_type stringPossible values: [
Part
,Contact
]item_id integerdescription stringunit_cost floatsubtotal floatwork_order_id integerposition integerquantity floatwork_order_labor_line_items_attributes object[]
type stringPossible values: [
WorkOrderPartLineItem
,WorkOrderLaborLineItem
]item_type stringPossible values: [
Part
,Contact
]item_id integerdescription stringunit_cost floatsubtotal floatwork_order_id integerposition integerquantity float
- 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"
}