Recover Work Order

Changed on

Operates on Service Orders, shown in the Zuper client app as "Work Order" (in every industry). Work Orders share the exact same underlying schema and endpoints as Purchase Orders / Material Orders; they're distinguished only by the purchase_order_type field (SERVICE_ORDER here) and the /service_orders route prefix. Restores (undeletes) previously soft-deleted orders. Requires the caller's role to be exactly ADMIN — not just an equivalent permission key — or the request is rejected with 401.

post/service_orders/recover

Request

  • Base URL
    https://dc-region.zuperpro.com/api
  • URL
    https://dc-region.zuperpro.com/api/service_orders/recover
  • Auth
    API key in header x-api-key

Request body

purchase_order_uidsstring[] required

Non-empty array required.

Response

200

type'success'
titlestring
messagestring

Changes