REST API Test Page
Operation
PUT
on
/setup/location
Update setup location of user
Produces
: application/json
Parameters
Name
Type
Value
Description
(JSON)
Request Body
{ "city" : "a city", "country" : "a country", "postalCode" : "a postal code", "addressLine1" : "an address line1", "addressLine2" : "an address line2", "timezone" : "a timezone", "longitude" : 0.12345, "latitude" : 0.12345, "twilightMode" : 1, "twilightAngle" : "SOLAR", "twilightCity" : "a twilight city", "summerSolsticeDuskMinutes" : 1, "winterSolsticeDuskMinutes" : 1, "twilightOffsetEnabled" : true, "dawnOffset" : 1, "duskOffset" : 1, "tariffSettings" : { "tariffMode" : "offPeakHours", "tariffs" : [ { "name" : "tariff0", "startTime" : "00:01" } ] } }
*
The new location to set
Result
HTTP Status :