REST API Test Page
Operation
POST
on
/enduser/setup
Create a new setup and attach it to connected end user
Produces
: application/json
Parameters
Name
Type
Value
Description
(JSON)
Request Body
{ "location" : { "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" } ] } }, "label" : "a new setup creation label", "roleName" : "a role name", "applicationId" : "an application id", "activationTimestamp" : 120123456790, "expirationTimestamp" : 120123456791, "gatewayIds" : [ "some gateway ids" ], "templateName" : "a role name" }
*
Create setup options
Result
HTTP Status :