Create private account

Returns the Manager-generated ID for the account on success.

Request

Security

Table 1. Roles capable of executing the Create Private Account API method
Any Super User System Admin Security Admin Operator
  superUser   securityAdmin  

HTTP method

POST /manager/api/{apiResponseType}/1.0/createPrivateAccount.adm HTTP/1.1 Host:{manager.dsnet} name={accountName}&username={accountName}&password={password}&confirmPassword={password}

Curl method

curl -X POST -u <username>:<password> --header "Content-Type: application/x-www-form-urlencoded" -k 'https://{manager.dsnet}/manager/api/{apiResponseType}/1.0/createPrivateAccount.adm' -d 'name={userName}&email={userEmailAddress}&userName={username}&password={passowrd}&confirmPassword={password}'

Parameters

Table 2. Request Parameters for Create Private Account (createPrivateAccount) API method
Parameter Type Usage Default Description
name String Required   Human-readable name for the new account.
email String Optional   Email address for the new private account.
username String Required   Account username
password string Required   Account password.
confirmPassword String Required   Account confirm password.

Response

Returns success or failure status.

JSON response example

{
  “responseStatus”:“ok”,
  “responseHeader”:{
    “status”:“ok”,
    “now”:{milliseconds from the UNIX epoch},
    “requestId”:“{requestId}”
  },
  “responseData”:{
    “id”:124
  }
}

Parameters

Table 3. Response Parameters for Create Private Account (createPrivateAccount) API method
Parameter Type Description

id

Long ID of new private account.