Replace Work Order Line Items

Replaces all line items on a work order. Internally updates or creates the underlying quote linked to the task. Supported **only** for service work orders on an **account** (parent project type `ACCOUNT`). Requests for other work orders receive `400`. Provide **either** `sections` **or** `lineItems` (not both), using the same shapes as quote line items.

Authentication

x-api-keystring
API Key authentication via header

Path parameters

work_order_idintegerRequired
Work order identifier

Request

This endpoint expects an object.
sectionslist of objectsOptional
lineItemslist of objectsOptional

Response

Updated line items (dollar amounts)

idintegerOptional
quantityintegerOptional
descriptionstring or nullOptional
unitCostdoubleOptional
totalCostdouble or nullOptional
unitPricedoubleOptional
totalPricedouble or nullOptional
sectionNamestring or nullOptional
catalogItemobject or nullOptional

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
500
Internal Server Error