POST api/v1/locations/{LocationID}/devices/security/synchronize
Execute Security Panel and Automation Synchronization
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
LocationID | integer |
Required |
Body Parameters
SynchronizeInfoName | Description | Type | Additional information |
---|---|---|---|
installerCode | string |
None. |
|
userCode | string |
None. |
|
forceImport | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "installerCode": "sample string 1", "userCode": "sample string 2", "forceImport": true }
application/xml, text/xml
Sample:
<SynchronizeInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TC2WebAPIController.Models.V1.Automation"> <forceImport>true</forceImport> <installerCode>sample string 1</installerCode> <userCode>sample string 2</userCode> </SynchronizeInfo>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
AutomationSyncResults
AutomationSyncResultsName | Description | Type | Additional information |
---|---|---|---|
JobID | string |
None. |
|
ResultCode | integer |
None. |
|
ResultData | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "JobID": "sample string 1", "ResultCode": 2, "ResultData": "sample string 3" }
application/xml, text/xml
Sample:
<AutomationSyncResults xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TC2WebAPIController.Models.V1.Automation"> <ResultCode xmlns="http://schemas.datacontract.org/2004/07/TC2Utilities.RestApi">2</ResultCode> <ResultData xmlns="http://schemas.datacontract.org/2004/07/TC2Utilities.RestApi">sample string 3</ResultData> <JobID>sample string 1</JobID> </AutomationSyncResults>