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

workOrderIdintegerRequired
Work order identifier

Request

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

Response

Updated line items (dollar amounts)

idinteger
quantityinteger
descriptionstring or null
unitCostdouble
totalCostdouble or null
unitPricedouble
totalPricedouble or null
sectionIdinteger
Present when the item belongs to a named section
sectionNamestring or null
catalogItemobject or null

Errors

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