Overview
Updating estimate info in MobiWork
Updating estimate info in MobiWork
URL Format
https://{domain}.mobiwork.com/api/rest/{clientId}/{versionNumber}/estimate/{estimateId}/edit.html?token=XXXXXXXX&userId={userId}
https://{domain}.mobiwork.com/api/rest/{clientId}/{versionNumber}/estimate/{estimateId}/edit.html?token=XXXXXXXX&userId={userId}
Arguments
| clientId required |
MobiWork assigned unique ID of the company |
| versionNumber required |
Version number of MobiWork API SDK release. Current version is: 10.0.78 |
| token required |
Part of URL as a request parameter and is required in every call to verify access to API calls |
| userId optional |
If provided, this User ID will be taken as a logged in user. If not provided we use an active global administrator ID |
| estimateId required |
The identifier of the estimate to be retrieved |
Return
Returns an estimate Object if estimate update is successful or errors will be returned
Returns an estimate Object if estimate update is successful or errors will be returned
Curl Example
| HTTP Method: | POST |
| Request: |
curl -X POST "https://www.mobiwork.com/api/rest/12026/5.0.141/estimate/12345/edit.html?token=COJL8X2FKSLMMRTYCH2B" -data '<request> <estimate> <description></description> <status></status> <customer>1</customer> <locationId>123</locationId> <category></category> <assignedTo></assignedTo> <externalId></externalId> <dueDate>Mon Sep 26 06:35:29 EDT 2018</dueDate> <address> <addressName>Primary Address</addressName> <address1>160 Congress Park Dr</address1> <address2></address2> <city>Delray Beach</city> <state>Florida</state> <postalCode>33445</postalCode> <country>1</country> <latitude>26.4582132</latitude> <longitude>-80.0940502</longitude> </address> <contact> <firstName>John</firstName> <lastName>Doe</lastName> <phoneNumber>1231231234</phoneNumber> <phoneExt></phoneExt> <title></title> <email></email> <fax></fax> <altPhone></altPhone> <altPhoneExt></altPhoneExt> </contact> </estimate> </request>' |
| Response: |
<?xml version="1.0" encoding="UTF-8" ?> <response> <estimate> <description></description> <status></status> <customer>1</customer> <locationId>123</locationId> <category></category> <assignedTo></assignedTo> <externalId></externalId> <dueDate>Mon Sep 26 06:35:29 EDT 2018</dueDate> <address> <addressName>Primary Address</addressName> <address1>160 Congress Park Dr</address1> <address2></address2> <city>Delray Beach</city> <state>Florida</state> <postalCode>33445</postalCode> <country>1</country> <latitude>26.4582132</latitude> <longitude>-80.0940502</longitude> </address> <contact> <firstName>John</firstName> <lastName>Doe</lastName> <phoneNumber>1231231234</phoneNumber> <phoneExt></phoneExt> <title></title> <email></email> <fax></fax> <altPhone></altPhone> <altPhoneExt></altPhoneExt> </contact> </estimate> </response>' |