REST API Test Page
Operation
POST
on
/enduser/mainAccount
Create enduser main account
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" : "NAUTICAL", "twilightCity" : "a twilight city", "summerSolsticeDuskMinutes" : 1, "winterSolsticeDuskMinutes" : 1, "twilightOffsetEnabled" : false, "dawnOffset" : 1, "duskOffset" : 1, "tariffSettings" : { "tariffMode" : "offPeakWeekDays", "tariffs" : [ { "dayTariffs" : [ { "name" : "tariff0", "startTime" : "00:01" } ], "dayWeekName" : "SAT" } ] } }, "label" : "a main enduser account label", "roleName" : "a role name", "applicationId" : "an application id", "activationTimestamp" : 120123456790, "expirationTimestamp" : 120123456794, "gatewayId" : "A comma separated list of gateway ids", "endUser" : { "userId" : "a user id", "title" : 1, "firstName" : "a first name", "lastName" : "a last name", "email" : "an email", "phoneNumber" : "a phone number", "mobilePhone" : "a mobile phone", "locale" : "a locale", "commercialMailAgreement" : true, "extraEmails" : [ { "email" : "an email" } ] }, "password" : "a password", "templateName" : "a role name" }
*
All information about the new main user
Result
HTTP Status :