I am trying to make REST API call to create an account on the SoftLayer platform. However, it keeps returning the following message even I have provided value for email:
{"error":"Missing email address.","code":"SoftLayer_Exception_Public"}
I am trying to execute the following method:
http://sldn.softlayer.com/reference/services/SoftLayer_User_Customer/createObject
I am using curl to setup the POST REST call like the following:
curl -H "Content-Type: application/json" --data @User-Account-Create.json https://<USER>:<API_KEY>@api.softlayer.com/rest/v3/SoftLayer_User_Customer/createObject
The content of User-account-Create.json is the following:
{
"parameters" : [
{
"email": "[email protected]",
"address1": "address1",
"city": "Toronto",
"companyName": "Company",
"country": "CA",
"firstName": "Dickson",
"lastName": "Fu",
"secondaryLoginManagementFlag": true,
"managedByOpenIdConnectFlag": true,
"openIdConnectUserName" : "[email protected]",
"permissionSystemVersion": 0,
"timezoneId": 8,
"username" : "[email protected]",
"userStatusId": 0
}
]
}
BTW, I can't find references to values that can be set on "permrissionSystemVersion", "timezoneId" and "userStatusId" attributes. If anyone can point me to them, it would be great.
Thanks