POST api/SyncTerritory
Request Information
URI Parameters
None.
Body Parameters
TerritorySyncRequestName | Description | Type | Additional information |
---|---|---|---|
loginDetail | clsLoginDetail |
None. |
|
UpdateSalesforceRecord | boolean |
None. |
|
deleteExistingData | boolean |
None. |
|
territoryId | Collection of string |
None. |
|
orgId | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "loginDetail": { "sessionID": "sample string 1", "serverURL": "sample string 2", "orgID": "sample string 3", "userName": "sample string 4", "password": "sample string 5", "securityToken": "sample string 6", "connectionString": "sample string 7", "MetadataServerURL": "sample string 8" }, "UpdateSalesforceRecord": true, "deleteExistingData": true, "territoryId": [ "sample string 1", "sample string 2" ], "orgId": "sample string 3" }
application/xml, text/xml
Sample:
<TerritorySyncRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RouteOptimizerWebAPI.Models"> <UpdateSalesforceRecord>true</UpdateSalesforceRecord> <deleteExistingData>true</deleteExistingData> <loginDetail> <MetadataServerURL>sample string 8</MetadataServerURL> <connectionString>sample string 7</connectionString> <orgID>sample string 3</orgID> <password>sample string 5</password> <securityToken>sample string 6</securityToken> <serverURL>sample string 2</serverURL> <sessionID>sample string 1</sessionID> <userName>sample string 4</userName> </loginDetail> <orgId>sample string 3</orgId> <territoryId xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </territoryId> </TerritorySyncRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
syncResultName | Description | Type | Additional information |
---|---|---|---|
success | boolean |
None. |
|
error | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "success": true, "error": "sample string 2" }
application/xml, text/xml
Sample:
<syncResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RouteOptimizerWebAPI.Models"> <error>sample string 2</error> <success>true</success> </syncResult>