> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://apidocs.megamation.com/api/work-order/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://apidocs.megamation.com/_mcp/server. # Overview You can retrieve a list of work orders or the details of a single work order from the `WORK_ORDER_MASTER` table.\ You are also able to pass the same information retrieved as a way to create new work order records or update existing work order information. You will be required to adhere to existing logic from our base system (including validation or making sure required fields are filled in) and if an error occurs, the error returned will include information about how to rectify this issue. Any field available in DirectLine for this table can be made available to this endpoint. Please contact your account manager to discuss your specific requirements. The list of fields returned is a subset of all fields returned. To get a list of all fields returned you can use the link: `{{baseUrl}}/{{client_name}}/{{database}}/workorder/@LABELS`. Fields are truncated to 1000 characters by default. Detailed information of the fields returned including field types can be obtained using the link: `{{baseUrl}}/{{client_name}}/{{database}}/workorder/@SCHEMA` You can filter the returned results by available criteria as well. An example would be to use a link such as: `{{baseUrl}}/{{client_name}}/{{database}}/workorder?STATUS=S&TYPE=PM` where the data returned will only include values where the status is 'S' and the work order's type is 'PM'. To get a full list of filterable fields you can use the link: `{{baseUrl}}/{{client_name}}/{{database}}/workorder/@CRITERIA` Additional filtering can be done by using filter modifiers on the value passed. These modifiers include: **\[]** for containing **!!** for not equal **>>** for greater than **\<\<** for less than **\<>** for between. Use each of these by adding them to the front of any value such as: **TYPE=\[]PM** to select results where the TYPE contains PM. You can send muliple values using comma(,) as delimiter `Version 1.06` Between is useful for dates where you would use **DATE=\<>2020-01-01,2020-12-31** for results between 2020-01-01 and 2020-12-31. Between is inclusive so the results will include records when the date is 2020-01-01 and 2020-12-31. Your system's date format may be different than the examples here as it is a setting in DirectLine. The @SCHEMA example (above) will show the date format being used for any date validated field for the endpoint being viewed. **LIMIT**: The maximum number of records returned per request. The default for this field is 1000. *Response has the following additional fields*: * **has_more**: Is true if there are additional records that have not been returned yet. An additional call can retrieve them. * **cursor**: Pass the cursor as a parameter into next call to obtain additional record requests else is empty. * **next_page**: A Link for the next request else is empty. ## API Docs - [Get Work Orders](https://apidocs.megamation.com/api/work-order/get-work-order-get-work-orders.md): Work Order - [Create Work Orders](https://apidocs.megamation.com/api/work-order/post-work-order-create-work-orders.md): Work Order - [Create a specific work order](https://apidocs.megamation.com/api/work-order/put-work-order-create-a-specific-work-order.md): Work Order - [Get a specific work order's details](https://apidocs.megamation.com/api/work-order/get-work-order-get-a-specific-work-order-s-details.md): Work Order - [Delete an existing work order](https://apidocs.megamation.com/api/work-order/delete-work-order-delete-an-existing-work-order.md): Work Order - [Edit Work Order](https://apidocs.megamation.com/api/work-order/patch-work-order-edit-work-order.md): Work Order - [Get Criteria](https://apidocs.megamation.com/api/work-order/get-work-order-get-criteria.md): Work Order - [Get Labels](https://apidocs.megamation.com/api/work-order/get-work-order-get-labels.md): Work Order - [Get Schema](https://apidocs.megamation.com/api/work-order/get-work-order-get-schema.md): Work Order ## OpenAPI Specification - [OpenAPI JSON](https://apidocs.megamation.com/openapi.json): raw OpenAPI 3.1 specification for this API, JSON format - [OpenAPI YAML](https://apidocs.megamation.com/openapi.yaml): raw OpenAPI 3.1 specification for this API, YAML format