POST api/v2/Service/WorkOrders/CreateFromEstimate?EstimateId={EstimateId}&WithDetail={WithDetail}&WithUnapprovedOps={WithUnapprovedOps}
Create a new Work Order from an existing Estimate
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| EstimateId |
Id of the Estimate that will be used to create the new Work Order. |
string |
Required |
| WithDetail |
Create the Work Order with all of the estimated detail charges from the Estimate |
boolean |
Default value is False |
| WithUnapprovedOps |
Create the Work Order with all operations from the Estimate, even if not approved. |
boolean |
Default value is False |
Body Parameters
None.
Response Information
Resource Description
SubmitServiceRequestResult| Name | Description | Type | Additional information |
|---|---|---|---|
| WOId | string |
None. |
|
| Operations | Collection of string |
None. |
|
| Result | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"WOId": "sample string 1",
"Operations": [
"sample string 1",
"sample string 2"
],
"Result": "sample string 2"
}
application/xml, text/xml
Sample:
<SubmitServiceRequestResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/com.dockmaster.lib.models">
<Operations xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</Operations>
<Result>sample string 2</Result>
<WOId>sample string 1</WOId>
</SubmitServiceRequestResult>