---
url: "https://developers.vzconnect.com/apis/work-order-api-1/versions/e15c746c-6eb5-4df9-a8e1-a1a16e4d9576"
---

OpenAPI specification document.

```json
{"openapi":"3.0.0","info":{"title":"Work Order API","description":"The Work Order REST Service is included within the REVEAL Planning and Scheduling API suite. Integrated customers and partners can use the API to manage work orders within REVEAL. 3rd parties can update a work order's lifecycle with real-time statuses.\n  \nThis API is for Reveal Pro Feature only accounts and not related to the Reveal Field product.\n  \nThis API will use the following unique identifier(s): Work Order Number, Driver Number, Work Order Status Code, Work Order Type Code. Standard REST verbs are applied: GET, POST, PUT.","version":"1.0","x-vzc-portal":{"category":"Maintenance & Work Orders","summary":"Create, track, and manage work orders while syncing job data with external scheduling systems.","business":{"description":"allows integrated customers and partners to create, track, and manage Reveal work orders while syncing job data with external scheduling systems. The API connects vehicle locations with job sites to support live map tracking, arrival reporting, and operational performance metrics. Available for Reveal Pro Feature accounts, the API helps businesses align expected field activity with actual vehicle movement.","purpose":"The Work Order API helps integrated customers and partners create, update, assign, schedule, and track Reveal work orders.\n\nTeams can retrieve work order details and status, update lifecycle status, and connect vehicle locations with expected job locations.\n\nIt supports reporting and dashboards for on-time arrivals, hours worked, on-site time, and variance, along with live map, timeline, and replay views.\n\nReturned information is limited by your account data plan. This API is available for Reveal Pro Feature accounts and is not intended for Reveal Field."},"use-cases":[{"title":"Scheduling & ERP Synchronization","description":"Keep work orders synchronized seamlessly between third-party dispatch, scheduling, and job-management systems and Reveal."},{"title":"Activity & Progress Monitoring","description":"Track job progress in real time and compare planned work locations directly with actual vehicle movement and GPS activity."},{"title":"Operational Performance Reporting","description":"Support business intelligence dashboards and operational reporting for on-time arrivals, total time on site, and job variance."},{"title":"Automated Live Map & Proof-of-Arrival Tracking","description":"Connect job site locations with real-time vehicle GPS feeds to power live map timelines, route replay views, and automated proof-of-service reporting."}],"icon-svg-base64":"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI3NSIgaGVpZ2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IDNoMXYxaC0xek01NiAzaDF2MWgtMXpNMTggNGgxdjFoLTF6TTU2IDRoMXYxaC0xek0xOCA1aDF2MWgtMXpNNTYgNWgxdjFoLTF6TTE4IDZoMXYxaC0xek01NiA2aDF2MWgtMXpNMTggN2gxdjFoLTF6TTU2IDdoMXYxaC0xek0xOCA4aDF2MWgtMXpNNTYgOGgxdjFoLTF6TTE4IDE5aDF2MWgtMXpNNTYgMTloMXYxaC0xek0xOCAyMGgxdjFoLTF6TTU2IDIwaDF2MWgtMXpNMTggMjFoMXYxaC0xek01NiAyMWgxdjFoLTF6TTE4IDIyaDF2MWgtMXpNNTYgMjJoMXYxaC0xek0xOCAyM2gxdjFoLTF6TTU2IDIzaDF2MWgtMXpNMTggMjRoMXYxaC0xek01NiAyNGgxdjFoLTF6TTE4IDI1aDF2MWgtMXpNNTYgMjVoMXYxaC0xek0xOCAyNmgxdjFoLTF6TTU2IDI2aDF2MWgtMXpNMTggMjdoMXYxaC0xek01NiAyN2gxdjFoLTF6IiBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9IjAuMjUxIi8+DQo8cGF0aCBkPSJNMTkgMjhoMTV2MWgtMTV6TTQxIDI4aDE1djFoLTE1eiIgZmlsbD0iIzAwMCIgZmlsbC1vcGFjaXR5PSIwLjEyNSIvPg0KPHBhdGggZD0iTTM0IDI4aDF2MWgtMXpNNDAgMjhoMXYxaC0xek01NiAyOGgxdjFoLTF6TTEgNzNoMXYxaC0xek03MyA3M2gxdjFoLTF6IiBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9IjAuMDYzIi8+DQo8L3N2Zz4NCg=="}},"paths":{"/pas/v1/workorders":{"post":{"operationId":"POST__workorders","summary":"Create a work order.","description":"The POST Work Order method enables integration users to create work orders within the REVEAL account. In order to create a Work Order, a Status and Type are required fields. Either the Address components or the coordinates (Latitude/Longitude) must be provided to create a work order; if both are supplied, the coordinates will be used for reference to geocode the work order's location.","requestBody":{"description":"The work order details to create.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrderRequest"},"example":{"ActualDateUtc":"","ActualDurationSeconds":null,"Address":{"AddressLine1":"4444 East Ridgewood Drive","AddressLine2":null,"Locality":"Seven Hills","AdministrativeArea":"Ohio","PostalCode":"44131","Country":"USA"},"ClientCustomerId":null,"Description":null,"DriverNumber":"777","Latitude":0,"Longitude":0,"OnSiteDurationSeconds":0,"RadiusInKm":".322","ScheduledDateUtc":"2017-01-13Z18:00:00","ScheduledDurationSeconds":null,"StatusChangeDateUtc":null,"WorkOrderNumber":"WO-2518-2029","WorkOrderStatusCode":"InProcess","WorkOrderTypeCode":"ALM"}}},"required":true},"responses":{"201":{"description":"Work order successfully created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrderResponse"},"example":{"ActualDateUtc":null,"ActualDurationSeconds":null,"Address":{"AddressLine1":"4444 East Ridgewood Drive","AddressLine2":null,"Locality":"Seven Hills","AdministrativeArea":"Ohio","PostalCode":"44131","Country":"USA"},"AddressResolved":false,"ClientCustomerId":null,"CreatedDateUtc":"2017-01-18T21:38:28.78","Description":null,"DriverNumber":"777","Latitude":0,"Longitude":0,"ModifiedDateUtc":"2017-01-18T21:38:28.78","OnSiteDurationSeconds":0,"RadiusInKm":0.322,"ScheduledDateUtc":"2017-01-13T18:00:00","ScheduledDurationSeconds":null,"StatusChangeDateUtc":null,"WorkOrderNumber":"WO-2518-2029","WorkOrderStatusCode":"InProcess","WorkOrderTypeCode":"ALM"}}}},"400":{"description":"Invalid request body.","content":{"application/json":{}}},"401":{"description":"Unauthorized.","content":{"application/json":{}}},"404":{"description":"The unique identifier used for the call (for example an unfound Work Order Number or Place ID) was not found."},"500":{"description":"Internal server error.","content":{"application/json":{}}}},"x-kong-route-defaults":{"strip_path":false,"paths":["~/pas/v1/workorders/?$"]},"tags":["Work Order API"]}},"/pas/v1/workorders/{workordernumber}":{"get":{"operationId":"GET__workorders__workordernumber_","summary":"Get a work order by number.","description":"The GET Work Order by Work Order Number method enables integration users to retrieve all the data that REVEAL has been sent related to a specific work order.","parameters":[{"name":"workordernumber","in":"path","description":"The unique Work Order Number identifying the work order.","required":true,"schema":{"type":"string"},"example":"595067-03CARA-374"}],"responses":{"200":{"description":"Returns the work order details.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrderResource"},"example":{"WorkOrder":{"ActualDateUtc":"2017-01-18T13:15:48.983","ActualDurationSeconds":0,"Address":{"AddressLine1":"11241 Miromar Square Blvd","AddressLine2":"","Locality":"Estero","AdministrativeArea":"FL","PostalCode":"33928 ","Country":"USA"},"AddressResolved":true,"ClientCustomerId":null,"CreatedDateUtc":"2017-01-18T17:00:05.263","Description":"TECH MUST CLOCK IN","DriverNumber":"777","Latitude":26.425671,"Longitude":-81.801965,"ModifiedDateUtc":"2017-01-18T16:58:55.4","OnSiteDurationSeconds":0,"RadiusInKm":0.322,"ScheduledDateUtc":"2017-01-18T16:59:50","ScheduledDurationSeconds":0,"StatusChangeDateUtc":"2017-01-18T13:16:47","WorkOrderNumber":"595067-03CARA-374","WorkOrderStatusCode":"Open","WorkOrderTypeCode":"INT LMSW"}}}}},"400":{"description":"Invalid request parameters.","content":{"application/json":{}}},"401":{"description":"Unauthorized.","content":{"application/json":{}}},"404":{"description":"Work order not found.","content":{"application/json":{}}},"500":{"description":"Internal server error.","content":{"application/json":{}}}},"x-kong-route-defaults":{"strip_path":false,"paths":["~/pas/v1/workorders/[^/]+/?$"]},"tags":["Work Order API"]},"put":{"operationId":"PUT__workorders__workordernumber_","summary":"Update a work order.","description":"The PUT Work Order by Work Order Number method enables integration users to update an existing work order's meta data within REVEAL. The PUT method cannot be used to update a work order's status. To update a work order status, the POST Work Order Status method will need to be invoked.","parameters":[{"name":"workordernumber","in":"path","description":"The unique Work Order Number identifying the work order to update.","required":true,"schema":{"type":"string"},"example":"WO-2518-2029"}],"requestBody":{"description":"The updated work order details.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrderUpdateRequest"},"example":{"ActualDateUtc":"","Address":{"AddressLine1":"3000 East Ridgewood Drive","AddressLine2":null,"Locality":"Seven Hills","AdministrativeArea":"Ohio","PostalCode":"44131","Country":"USA"},"ClientCustomerId":null,"Description":null,"DriverNumber":"777","Latitude":0,"Longitude":0,"OnSiteDurationSeconds":0,"RadiusInKm":".322","ScheduledDateUtc":"2017-01-13Z18:00:00","ScheduledDurationSeconds":null,"WorkOrderNumber":"WO-2518-2029","WorkOrderTypeCode":"ALM"}}},"required":true},"responses":{"204":{"description":"Work order successfully updated.","content":{"application/json":{}}},"400":{"description":"Invalid request body or parameters.","content":{"application/json":{}}},"401":{"description":"Unauthorized.","content":{"application/json":{}}},"404":{"description":"Work order not found.","content":{"application/json":{}}},"500":{"description":"Internal server error.","content":{"application/json":{}}}},"x-kong-route-defaults":{"strip_path":false,"paths":["~/pas/v1/workorders/[^/]+/?$"]},"tags":["Work Order API"]}},"/pas/v1/workorders/{workordernumber}/status":{"get":{"operationId":"GET__workorders__workordernumber__status","summary":"Get work order status.","description":"The GET Current Work Order Status by Work Order Number enables the integration user to retrieve the current Work Order Status applied to the work order. Users may invoke this method to track the work order's lifecycle within REVEAL. In order to apply a work order status to a work order in REVEAL the status type must first be created to be recognized using the Planning and Scheduling Work Order Status API.","parameters":[{"name":"workordernumber","in":"path","description":"The unique Work Order Number identifying the work order.","required":true,"schema":{"type":"string"},"example":"WO-2518-2029"}],"responses":{"200":{"description":"Returns the current work order status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrderStatus"},"example":{"StatusChangeDateUtc":"2017-01-18T13:16:47","WorkOrderStatusCode":"InProcess","WorkOrderStatusDescription":"InProcess Work Order.","WorkOrderStatusType":"InProcess"}}}},"400":{"description":"Invalid request parameters.","content":{"application/json":{}}},"401":{"description":"Unauthorized.","content":{"application/json":{}}},"404":{"description":"Work order not found.","content":{"application/json":{}}},"500":{"description":"Internal server error.","content":{"application/json":{}}}},"x-kong-route-defaults":{"strip_path":false,"paths":["~/pas/v1/workorders/[^/]+/status/?$"]},"tags":["Work Order API"]},"post":{"operationId":"POST__workorders__workordernumber__status","summary":"Update work order status.","description":"The POST Work Order Status method enables integration users to update a work order's status to track the lifecycle of the work order. Work orders need to minimally have IN PROCESS and COMPLETED statuses for REVEAL to calculate reporting metrics and match the work order to vehicle location information.","parameters":[{"name":"workordernumber","in":"path","description":"The unique Work Order Number identifying the work order.","required":true,"schema":{"type":"string"},"example":"WO-2518-2029"}],"requestBody":{"description":"The new status to apply to the work order.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrderStatus"},"example":{"WorkOrderStatusCode":"Complete","WorkOrderStatusDescription":"Complete","WorkOrderStatusType":"Complete"}}},"required":true},"responses":{"204":{"description":"Work order status successfully updated.","content":{"application/json":{}}},"400":{"description":"Invalid request body or parameters.","content":{"application/json":{}}},"401":{"description":"Unauthorized.","content":{"application/json":{}}},"404":{"description":"Work order not found.","content":{"application/json":{}}},"500":{"description":"Internal server error.","content":{"application/json":{}}}},"x-kong-route-defaults":{"strip_path":false,"paths":["~/pas/v1/workorders/[^/]+/status/?$"]},"tags":["Work Order API"]}}},"components":{"schemas":{"WorkOrderResponse":{"allOf":[{"$ref":"#/components/schemas/WorkOrder"}],"description":"The flat work order object returned by the POST Work Order operation."},"WorkOrderUpdateRequest":{"type":"object","description":"Request body to update an existing work order's meta data. The PUT method cannot be used to update a work order's status.","properties":{"ActualDateUtc":{"type":"string","nullable":true,"description":"The Actual Date field is used when a PUT is invoked to change the Scheduled Date for a work order.","example":""},"Address":{"$ref":"#/components/schemas/Address"},"ClientCustomerId":{"type":"boolean","nullable":true,"description":"Boolean field for deprecated service parameter, defaults to Null.","deprecated":true,"example":null},"Description":{"type":"string","nullable":true,"description":"This is not a required field. A string may be provided in order to display instructions or notes about the work order to the technician/driver.","example":null},"DriverNumber":{"type":"string","description":"The Driver Number is the unique identifier that will be used to reference the driver within the API.","example":"777"},"Latitude":{"type":"number","format":"double","description":"Either the Address components or the coordinates must be provided. If both are supplied, the coordinates will be used for reference to geocode the work order's location.","example":0},"Longitude":{"type":"number","format":"double","description":"Either the Address components or the coordinates must be provided. If both are supplied, the coordinates will be used for reference to geocode the work order's location.","example":0},"OnSiteDurationSeconds":{"type":"integer","description":"If there is an estimate for the time that the technician should be on site at the work order the value may be provided in seconds.","example":0},"RadiusInKm":{"type":"string","description":"The designated radius in kilometers used to create the radius around the work order. Note: the request sample shows this value as a string (e.g. \".322\") whereas the response returns it as a number (e.g. 0.322).","example":".322"},"ScheduledDateUtc":{"type":"string","description":"The Scheduled Date and Time for the work to be started or the technician's scheduled time to be on site.","example":"2017-01-13Z18:00:00"},"ScheduledDurationSeconds":{"type":"integer","nullable":true,"description":"The Scheduled Duration in Seconds that the work order job is estimated to take.","example":null},"WorkOrderNumber":{"type":"string","description":"Work Order Number is a required field and must be unique within an account.","example":"WO-2518-2029"},"WorkOrderTypeCode":{"type":"string","description":"Work Order Type Codes are created using the Planning and Scheduling Work Order Type API.","example":"ALM"}}},"Address":{"type":"object","description":"Address contains the global standards for address components. Address components are not required if the coordinates are provided for the work order. If address components and coordinates are both provided, the work order will be created referencing the coordinates.","properties":{"AddressLine1":{"type":"string","description":"Location specific identification such as a house number.","example":"4444 East Ridgewood Drive"},"AddressLine2":{"type":"string","nullable":true,"description":"Additional information to identify location such as an apartment number.","example":null},"Locality":{"type":"string","description":"City, town, etc.","example":"Seven Hills"},"AdministrativeArea":{"type":"string","description":"State, province, etc.","example":"Ohio"},"PostalCode":{"type":"string","description":"Postal code.","example":"44131"},"Country":{"type":"string","description":"Country.","example":"USA"}}},"WorkOrderStatus":{"type":"object","description":"The current status of a work order. Used as both the GET Current Work Order Status response and the POST Work Order Status request body.","properties":{"StatusChangeDateUtc":{"type":"string","format":"date-time","description":"The date and time when the work order's status was applied.","example":"2017-01-18T13:16:47"},"WorkOrderStatusCode":{"type":"string","description":"Work Order Status Codes are created using the Planning and Scheduling Work Order Status API. A work order status is used to update a work orders lifecycle for tracking purposes.","example":"InProcess"},"WorkOrderStatusDescription":{"type":"string","description":"When creating work order statuses within a REVEAL account there is an optional field for a Description to be provided. If the status was created with a Description the GET method for a work orders current status will return the description field.","example":"InProcess Work Order."},"WorkOrderStatusType":{"type":"string","description":"Work Order Status Types provide additional context to the associated Work Order Status Type Code used to calculate work order durations within REVEAL.","example":"InProcess"}}},"WorkOrderRequest":{"type":"object","description":"Request body to create a work order. A Work Order Number, Status and Type are required fields, and either the Address components or coordinates must be provided.","properties":{"ActualDateUtc":{"type":"string","nullable":true,"description":"The Actual Date field is used when a PUT is invoked to change the Scheduled Date for a work order.","example":""},"ActualDurationSeconds":{"type":"integer","nullable":true,"description":"REVEAL will calculate the actual duration value based on the status information provided. If no status information is provided this value may be provided by the work order provider.","example":null},"Address":{"$ref":"#/components/schemas/Address"},"ClientCustomerId":{"type":"boolean","nullable":true,"description":"Boolean field for deprecated service parameter, defaults to Null.","deprecated":true,"example":null},"Description":{"type":"string","nullable":true,"description":"This is not a required field. A string may be provided in order to display instructions or notes about the work order to the technician/driver.","example":null},"DriverNumber":{"type":"string","description":"The Driver Number is the unique identifier that will be used to reference the driver within the API. The Driver Number is not a mandatory field within the REVEAL account, but is required for the API.","example":"777"},"Latitude":{"type":"number","format":"double","description":"Either the Address components or the coordinates must be provided to create a work order. If both the address and coordinate fields are supplied, the coordinates will be used for reference to geocode the work order's location.","example":0},"Longitude":{"type":"number","format":"double","description":"Either the Address components or the coordinates must be provided to create a work order. If both the address and coordinate fields are supplied, the coordinates will be used for reference to geocode the work order's location.","example":0},"OnSiteDurationSeconds":{"type":"integer","description":"This is not a required field. If there is an estimate for the time that the technician should be on site at the work order the value may be provided in seconds.","example":0},"RadiusInKm":{"type":"string","description":"The designated radius in kilometers used to create the radius around the work order. Note: the request sample shows this value as a string (e.g. \".322\") whereas the response returns it as a number (e.g. 0.322).","example":".322"},"ScheduledDateUtc":{"type":"string","description":"The Scheduled Date and Time for the work to be started or the technician's scheduled time to be on site.","example":"2017-01-13Z18:00:00"},"ScheduledDurationSeconds":{"type":"integer","nullable":true,"description":"The Scheduled Duration in Seconds that the work order job is estimated to take. This value will not be overwritten by REVEAL's calculation and will be used for reporting variances.","example":null},"StatusChangeDateUtc":{"type":"string","format":"date-time","nullable":true,"description":"The date and time when the work order's status was applied.","example":null},"WorkOrderNumber":{"type":"string","description":"Work Order Number is a required field for a work order to be created within REVEAL and must be unique within an account.","example":"WO-2518-2029"},"WorkOrderStatusCode":{"type":"string","description":"Work Order Status Codes are created using the Planning and Scheduling Work Order Status API. A Status is a required field to create a work order.","example":"InProcess"},"WorkOrderTypeCode":{"type":"string","description":"Work Order Type Codes are created using the Planning and Scheduling Work Order Type API. A Type is a required field to create a work order.","example":"ALM"}},"required":["WorkOrderNumber","WorkOrderStatusCode","WorkOrderTypeCode","DriverNumber"]},"WorkOrderResource":{"type":"object","description":"A work order resource including the work order object and hypermedia links, as returned by GET Work Order.","properties":{"WorkOrder":{"$ref":"#/components/schemas/WorkOrder"},"_links":{"$ref":"#/components/schemas/Links"}}},"WorkOrder":{"type":"object","properties":{"ActualDateUtc":{"type":"string","format":"date-time","nullable":true,"description":"The Actual Date field is used when a PUT is invoked to change the Scheduled Date for a work order.","example":"2017-01-18T13:15:48.983"},"ActualDurationSeconds":{"type":"integer","nullable":true,"description":"REVEAL will calculate the actual duration value based on the status information provided. If no status information is provided this value may be provided by the work order provider.","example":0},"Address":{"$ref":"#/components/schemas/Address"},"AddressResolved":{"type":"boolean","description":"Boolean field. When retrieving a work order's details if the work order location was successfully geocoded by Google the flag will be set to true.","example":true},"ClientCustomerId":{"type":"boolean","nullable":true,"description":"Boolean field for deprecated service parameter, defaults to Null.","deprecated":true,"example":null},"CreatedDateUtc":{"type":"string","format":"date-time","description":"The date and time stamp in UTC that the work order object was created within REVEAL. The default value will be the current date and time stamp when the work order was invoked.","example":"2017-01-18T21:38:28.78"},"Description":{"type":"string","nullable":true,"description":"This is not a required field. A string may be provided in order to display instructions or notes about the work order to the technician/driver.","example":"TECH MUST CLOCK IN"},"DriverNumber":{"type":"string","description":"The Driver Number is the unique identifier that will be used to reference the driver within the API. The Driver Number is not a mandatory field within the REVEAL account, but is required for the API.","example":"777"},"Latitude":{"type":"number","format":"double","description":"Either the Address components or the coordinates must be provided to create a work order. If both the address and coordinate fields are supplied, the coordinates will be used for reference to geocode the work order's location.","example":26.425671},"Longitude":{"type":"number","format":"double","description":"Either the Address components or the coordinates must be provided to create a work order. If both the address and coordinate fields are supplied, the coordinates will be used for reference to geocode the work order's location.","example":-81.801965},"ModifiedDateUtc":{"type":"string","format":"date-time","description":"If the work order object is modified after the creation date, the last modified date will be presented within the response.","example":"2017-01-18T21:38:28.78"},"OnSiteDurationSeconds":{"type":"integer","description":"This is not a required field. If there is an estimate for the time that the technician should be on site at the work order the value may be provided in seconds. Following the work order's completion if status details were provided, this value will be overwritten with the status calculation to determine the on-site duration.","example":0},"RadiusInKm":{"type":"number","format":"double","description":"The designated radius in kilometers used to create the radius around the work order.","example":0.322},"ScheduledDateUtc":{"type":"string","format":"date-time","description":"The Scheduled Date and Time for the work to be started or the technician's scheduled time to be on site.","example":"2017-01-18T16:59:50"},"ScheduledDurationSeconds":{"type":"integer","nullable":true,"description":"The Scheduled Duration in Seconds that the work order job is estimated to take. This value will not be overwritten by REVEAL's calculation and will be used for reporting variances.","example":0},"StatusChangeDateUtc":{"type":"string","format":"date-time","nullable":true,"description":"The date and time when the work order's status was applied.","example":"2017-01-18T13:16:47"},"WorkOrderNumber":{"type":"string","description":"Work Order Number is a required field for a work order to be created within REVEAL and must be unique within an account.","example":"WO-2518-2021"},"WorkOrderStatusCode":{"type":"string","description":"Work Order Status Codes are created using the Planning and Scheduling Work Order Status API. All available work order status codes can be found within REVEAL's Admin section under Work Order Preferences. A work order status is used to update a work orders lifecycle for tracking purposes.","example":"InProcess"},"WorkOrderTypeCode":{"type":"string","description":"Work Order Type Codes are created using the Planning and Scheduling Work Order Type API. All available work order types can be found within REVEAL's Admin section under Work Order Preferences. A work order code is used to describe or categorize the type of work scheduled, i.e. Trouble Call.","example":"ALM"}}},"Links":{"type":"object","properties":{"Self":{"type":"object","properties":{"Href":{"type":"string","description":"The self-referential hyperlink to this resource."}}}}}}},"tags":[{"name":"Work Order API","description":"Operations for creating, retrieving, updating, and tracking the status of work orders for a Reveal account."}],"servers":[{"url":"https://api.us.vzconnect.com"}]}
```
