Archived work orders: list with include_archived, fetch by ID
Updated: GET /work-orders, GET /projects/{project_id}/work-orders, GET /opportunities/{opportunity_id}/work-orders, GET /accounts/{account_id}/work-orders
These list endpoints now support an include_archived query parameter.
- By default only active work orders are returned, so existing behavior is unchanged.
include_archived=truealso returns archived work orders. The value is case-insensitive (TRUEworks); any other value is treated asfalse.- Archived work orders have
isActive: false. - Work orders whose parent project, opportunity, or account is archived are never returned, even with
include_archived=true. This is a change forGET /work-orders, which previously returned active work orders under archived projects, opportunities, and accounts. - The
/requests/{request_id}/work-ordersand/clients/{client_id}/work-ordersaliases behave the same as their/opportunitiesand/accountscounterparts.
Updated: GET /work-orders/{work_order_id}
Archived work orders can now be fetched by ID instead of returning not found. Check isActive, which is false for an archived work order.
