Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

/workorder/update

This action updates/sets work order fields for a work order.

Request

FieldDescriptionRequired
report_idUnique identifier for the work orderYes
valuesWork order field valuesYes

The values field must be a JSON object. The keys in this object must be a canonical work order field name. The value in this object depends on the type of the work order field and should be set as follows:

Work Order Field TypeValid values(s)
textText value
dateDate value. Accepted formats: MM/DD/YYYY, YYYY-MM-DD, YYYYMMDD
dropdownCanonical value from the options in the fields.CANONICAL_WO_FIELD object returned by /workorder/get

Example:

{
  "report_id": 10616,
  "values": {
    "loan_number": "NVA839232",
    "client_company": 12111,
    "date_due": "12/20/2020",
    "start_date": "12/11/2020"
  }
}
curl -H 'Content-Type: application/json' \
     -H 'Authorization: Bearer ACCESS_TOKEN' \
     -d '{"report_id":10616,"values":{"loan_number":"NVA839232","client_company":12111,"date_due":"12/20/2020","start_date":"12/11/2020"}}' \
      https://ppw.web/svc/workorder/update

Response

FieldDescrptionType
resultMessage about the work order updatestring
org_property_idThe unique identifier of the current property the work order is associated tonumber
wo_reassociatedSet to true if the update triggered the work order to get re-associated to a different propertybool

Example successful response:

{
  "result": "Work order updated",
  "org_property_id": 18489,
  "wo_reassociated": false
}

Errors

Error TypeDescriptionStatus Code
invalid_report_idUnique work order identifier is invalid400
not_foundWork order does not exist404
values_requiredvalues parameter is invalid or not specified400
invalid_fieldA work order field specified in values is invalid400
invalid_dateThe value of a date work order field in values is invalid400
invalid_optionThe value of a dropdown work order field in values is invalid400
not_allowedA work order field in values is not allowed400