Create private account
Returns the Manager-generated ID for the account on success.
Request
Security
| 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
| Parameter | Type | Usage | Default | Description |
|---|---|---|---|---|
| name | String | Required | Human-readable name for the new account. | |
| 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
| Parameter | Type | Description |
|---|---|---|
|
id |
Long | ID of new private account. |