Use the Delete Work Order method to delete a work order.
HTTP method: DELETE
URI: /workorder/connection_name/work_order_id
Request payload content type: None
Response payload content type: None
Expected response: HTTP/1.1 204 No Content
The method URI contains the following parameters.
| Name | Description | Required |
|---|---|---|
| connection_name | Enter the name that identifies the Optim™ directory connection that contains the work order. | Y |
| work_order_id | Enter the ID that identifies the work order to be deleted. | Y |
The following response codes can be received when the method is complete.
| Response code | Description |
|---|---|
| 204 | No Content. The work order was successfully deleted. |
| 400 | Bad Request. A malformed request was submitted. |
| 404 | Not Found. The work order ID does not exist. |