PUT api/v1/locations/dataChanged/{dataChanged}/imageChanged/{imageChanged}/alias/{Alias}/saveLocation

Saves the data associated with a LocationInfo object to the database. Since this method will only update an existing Location, you are required to pass in its LocationId. Pass in a null value for the Image byte array when either the image has not changed or when the default image Is to be used. Any previous image will be deleted when either a null or actual image is saved. At the curent triggerTime, the Alias is for the one security system associated with this location

Request Information

URI Parameters

NameDescriptionTypeAdditional information
dataChanged

datachanges

boolean

Required

imageChanged

boolean

Required

Alias

alias

string

Required

Body Parameters

Locale

LocationInfo
NameDescriptionTypeAdditional information
ContentServiceLevelID

integer

None.

DoorBellServiceLevelID

integer

None.

DealerPushMessageRemainingCount

integer

None.

AdvertisingServiceLevelID

integer

None.

LatestMessageDate

date

None.

ISNewSkyBellAccount

boolean

None.

ISDaylightSavingTime

boolean

None.

VideoServiceLevelID

integer

None.

GarageDoorServiceLevelID

integer

None.

MotionViewerServiceLevelID

integer

None.

OutboundServiceLevelID

integer

None.

ISOccupied

boolean

None.

ISCoBrandingEnabled

boolean

None.

IsSMSNotificationEnabled

boolean

None.

IsPushNotificationEnabled

boolean

None.

IsEmailNotificationEnabled

boolean

None.

MonitoringTypeID

integer

None.

IsRemoteNetworkSetup

integer

None.

IsRental

boolean

None.

PackageId

integer

None.

IsAVCEnabled

boolean

None.

DataApiServiceLevelID

integer

None.

PartnerDataURLList

PartnerDataURLList

None.

IsBLEdisarmEnabled

boolean

None.

IsVAVEnabled

boolean

None.

LocationId

integer

None.

LocationName

string

None.

AccountId

integer

None.

PhotoId

integer

None.

TimeZoneId

integer

None.

PhotoURL

string

None.

SetDefaultLocationName

boolean

None.

SecuritySystemAlias

string

None.

SecuritySystemPanelDeviceID

integer

None.

CountryID

integer

None.

StreetNumber

string

None.

StreetName

string

None.

City

string

None.

StateID

integer

None.

PostalCode

string

None.

TemperatureUnits

string

None.

Latitude

string

None.

Longitude

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Image": "QEA=",
  "ContentServiceLevelID": 1,
  "DoorBellServiceLevelID": 2,
  "DealerPushMessageRemainingCount": 3,
  "AdvertisingServiceLevelID": 4,
  "LatestMessageDate": "2025-04-01T23:44:33.2203464-04:00",
  "ISNewSkyBellAccount": true,
  "ISDaylightSavingTime": true,
  "VideoServiceLevelID": 8,
  "GarageDoorServiceLevelID": 9,
  "MotionViewerServiceLevelID": 10,
  "OutboundServiceLevelID": 11,
  "ISOccupied": true,
  "ISCoBrandingEnabled": true,
  "IsSMSNotificationEnabled": true,
  "IsPushNotificationEnabled": true,
  "IsEmailNotificationEnabled": true,
  "MonitoringTypeID": 1,
  "IsRemoteNetworkSetup": 1,
  "IsRental": true,
  "PackageId": 14,
  "IsAVCEnabled": true,
  "DataApiServiceLevelID": 16,
  "PartnerDataURLList": {
    "PartnerDataURL": [
      "sample string 1",
      "sample string 2"
    ]
  },
  "IsBLEdisarmEnabled": true,
  "IsVAVEnabled": true,
  "LocationId": 19,
  "LocationName": "sample string 20",
  "AccountId": 21,
  "PhotoId": 22,
  "TimeZoneId": 23,
  "PhotoURL": "sample string 24",
  "SetDefaultLocationName": true,
  "SecuritySystemAlias": "sample string 26",
  "SecuritySystemPanelDeviceID": 27,
  "CountryID": 28,
  "StreetNumber": "sample string 29",
  "StreetName": "sample string 30",
  "City": "sample string 31",
  "StateID": 32,
  "PostalCode": "sample string 33",
  "TemperatureUnits": "sample string 34",
  "Latitude": "sample string 35",
  "Longitude": "sample string 36"
}

application/xml, text/xml

Sample:
<LocationInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TC2Domain">
  <AccountId>21</AccountId>
  <City>sample string 31</City>
  <CountryID>28</CountryID>
  <Latitude>sample string 35</Latitude>
  <LocationId>19</LocationId>
  <LocationName>sample string 20</LocationName>
  <Longitude>sample string 36</Longitude>
  <PhotoId>22</PhotoId>
  <PhotoURL>sample string 24</PhotoURL>
  <PostalCode>sample string 33</PostalCode>
  <SecuritySystemAlias>sample string 26</SecuritySystemAlias>
  <SecuritySystemPanelDeviceID>27</SecuritySystemPanelDeviceID>
  <SetDefaultLocationName>true</SetDefaultLocationName>
  <StateID>32</StateID>
  <StreetName>sample string 30</StreetName>
  <StreetNumber>sample string 29</StreetNumber>
  <TemperatureUnits>sample string 34</TemperatureUnits>
  <TimeZoneId>23</TimeZoneId>
  <AdvertisingServiceLevelID>4</AdvertisingServiceLevelID>
  <ContentServiceLevelID>1</ContentServiceLevelID>
  <DataApiServiceLevelID>16</DataApiServiceLevelID>
  <DealerPushMessageRemainingCount>3</DealerPushMessageRemainingCount>
  <DoorBellServiceLevelID>2</DoorBellServiceLevelID>
  <GarageDoorServiceLevelID>9</GarageDoorServiceLevelID>
  <ISCoBrandingEnabled>true</ISCoBrandingEnabled>
  <ISDaylightSavingTime>true</ISDaylightSavingTime>
  <ISNewSkyBellAccount>true</ISNewSkyBellAccount>
  <ISOccupied>true</ISOccupied>
  <Image>QEA=</Image>
  <IsAVCEnabled>true</IsAVCEnabled>
  <IsBLEdisarmEnabled>true</IsBLEdisarmEnabled>
  <IsEmailNotificationEnabled>true</IsEmailNotificationEnabled>
  <IsPushNotificationEnabled>true</IsPushNotificationEnabled>
  <IsRemoteNetworkSetup>1</IsRemoteNetworkSetup>
  <IsRental>true</IsRental>
  <IsSMSNotificationEnabled>true</IsSMSNotificationEnabled>
  <IsVAVEnabled>true</IsVAVEnabled>
  <LatestMessageDate>2025-04-01T23:44:33.2203464-04:00</LatestMessageDate>
  <MonitoringTypeID>1</MonitoringTypeID>
  <MotionViewerServiceLevelID>10</MotionViewerServiceLevelID>
  <OutboundServiceLevelID>11</OutboundServiceLevelID>
  <PackageId>14</PackageId>
  <PartnerDataURLList>
    <PartnerDataURL xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </PartnerDataURL>
  </PartnerDataURLList>
  <VideoServiceLevelID>8</VideoServiceLevelID>
</LocationInfo>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

LocationResult

LocationResult
NameDescriptionTypeAdditional information
LocationInfo

LocationInfo

None.

ResultCode

integer

None.

ResultData

string

None.

Response Formats

application/json, text/json

Sample:
{
  "LocationInfo": {
    "Image": "QEA=",
    "ContentServiceLevelID": 1,
    "DoorBellServiceLevelID": 2,
    "DealerPushMessageRemainingCount": 3,
    "AdvertisingServiceLevelID": 4,
    "LatestMessageDate": "2025-04-01T23:44:33.252352-04:00",
    "ISNewSkyBellAccount": true,
    "ISDaylightSavingTime": true,
    "VideoServiceLevelID": 8,
    "GarageDoorServiceLevelID": 9,
    "MotionViewerServiceLevelID": 10,
    "OutboundServiceLevelID": 11,
    "ISOccupied": true,
    "ISCoBrandingEnabled": true,
    "IsSMSNotificationEnabled": true,
    "IsPushNotificationEnabled": true,
    "IsEmailNotificationEnabled": true,
    "MonitoringTypeID": 1,
    "IsRemoteNetworkSetup": 1,
    "IsRental": true,
    "PackageId": 14,
    "IsAVCEnabled": true,
    "DataApiServiceLevelID": 16,
    "PartnerDataURLList": {
      "PartnerDataURL": [
        "sample string 1",
        "sample string 2"
      ]
    },
    "IsBLEdisarmEnabled": true,
    "IsVAVEnabled": true,
    "LocationId": 19,
    "LocationName": "sample string 20",
    "AccountId": 21,
    "PhotoId": 22,
    "TimeZoneId": 23,
    "PhotoURL": "sample string 24",
    "SetDefaultLocationName": true,
    "SecuritySystemAlias": "sample string 26",
    "SecuritySystemPanelDeviceID": 27,
    "CountryID": 28,
    "StreetNumber": "sample string 29",
    "StreetName": "sample string 30",
    "City": "sample string 31",
    "StateID": 32,
    "PostalCode": "sample string 33",
    "TemperatureUnits": "sample string 34",
    "Latitude": "sample string 35",
    "Longitude": "sample string 36"
  },
  "ResultCode": 1,
  "ResultData": "sample string 2"
}

application/xml, text/xml

Sample:
<LocationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TC2API.Resource.Models.ResultData">
  <ResultCode xmlns="http://schemas.datacontract.org/2004/07/TC2Utilities.RestApi">1</ResultCode>
  <ResultData xmlns="http://schemas.datacontract.org/2004/07/TC2Utilities.RestApi">sample string 2</ResultData>
  <LocationInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/TC2Domain">
    <d2p1:AccountId>21</d2p1:AccountId>
    <d2p1:City>sample string 31</d2p1:City>
    <d2p1:CountryID>28</d2p1:CountryID>
    <d2p1:Latitude>sample string 35</d2p1:Latitude>
    <d2p1:LocationId>19</d2p1:LocationId>
    <d2p1:LocationName>sample string 20</d2p1:LocationName>
    <d2p1:Longitude>sample string 36</d2p1:Longitude>
    <d2p1:PhotoId>22</d2p1:PhotoId>
    <d2p1:PhotoURL>sample string 24</d2p1:PhotoURL>
    <d2p1:PostalCode>sample string 33</d2p1:PostalCode>
    <d2p1:SecuritySystemAlias>sample string 26</d2p1:SecuritySystemAlias>
    <d2p1:SecuritySystemPanelDeviceID>27</d2p1:SecuritySystemPanelDeviceID>
    <d2p1:SetDefaultLocationName>true</d2p1:SetDefaultLocationName>
    <d2p1:StateID>32</d2p1:StateID>
    <d2p1:StreetName>sample string 30</d2p1:StreetName>
    <d2p1:StreetNumber>sample string 29</d2p1:StreetNumber>
    <d2p1:TemperatureUnits>sample string 34</d2p1:TemperatureUnits>
    <d2p1:TimeZoneId>23</d2p1:TimeZoneId>
    <d2p1:AdvertisingServiceLevelID>4</d2p1:AdvertisingServiceLevelID>
    <d2p1:ContentServiceLevelID>1</d2p1:ContentServiceLevelID>
    <d2p1:DataApiServiceLevelID>16</d2p1:DataApiServiceLevelID>
    <d2p1:DealerPushMessageRemainingCount>3</d2p1:DealerPushMessageRemainingCount>
    <d2p1:DoorBellServiceLevelID>2</d2p1:DoorBellServiceLevelID>
    <d2p1:GarageDoorServiceLevelID>9</d2p1:GarageDoorServiceLevelID>
    <d2p1:ISCoBrandingEnabled>true</d2p1:ISCoBrandingEnabled>
    <d2p1:ISDaylightSavingTime>true</d2p1:ISDaylightSavingTime>
    <d2p1:ISNewSkyBellAccount>true</d2p1:ISNewSkyBellAccount>
    <d2p1:ISOccupied>true</d2p1:ISOccupied>
    <d2p1:Image>QEA=</d2p1:Image>
    <d2p1:IsAVCEnabled>true</d2p1:IsAVCEnabled>
    <d2p1:IsBLEdisarmEnabled>true</d2p1:IsBLEdisarmEnabled>
    <d2p1:IsEmailNotificationEnabled>true</d2p1:IsEmailNotificationEnabled>
    <d2p1:IsPushNotificationEnabled>true</d2p1:IsPushNotificationEnabled>
    <d2p1:IsRemoteNetworkSetup>1</d2p1:IsRemoteNetworkSetup>
    <d2p1:IsRental>true</d2p1:IsRental>
    <d2p1:IsSMSNotificationEnabled>true</d2p1:IsSMSNotificationEnabled>
    <d2p1:IsVAVEnabled>true</d2p1:IsVAVEnabled>
    <d2p1:LatestMessageDate>2025-04-01T23:44:33.252352-04:00</d2p1:LatestMessageDate>
    <d2p1:MonitoringTypeID>1</d2p1:MonitoringTypeID>
    <d2p1:MotionViewerServiceLevelID>10</d2p1:MotionViewerServiceLevelID>
    <d2p1:OutboundServiceLevelID>11</d2p1:OutboundServiceLevelID>
    <d2p1:PackageId>14</d2p1:PackageId>
    <d2p1:PartnerDataURLList>
      <d2p1:PartnerDataURL xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </d2p1:PartnerDataURL>
    </d2p1:PartnerDataURLList>
    <d2p1:VideoServiceLevelID>8</d2p1:VideoServiceLevelID>
  </LocationInfo>
</LocationResult>