PUT api/User
Creates a customer account. The email address is also the login name. This doesn't log the session in: call PUT api/Session with the same email and password for that. Responses: 200 with the new user's ID. An error (500) if the email or password is missing, or an account already has that email address.
Request Information
URI Parameters
None.
Body Parameters
The new customer's name, email address and password.
UserRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| FirstName |
First name. |
string |
None. |
| LastName |
Last name. |
string |
None. |
|
Email address, also the login name. No other account can have it. Required. |
string |
None. |
|
| Password |
Password for the new account. Required. |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"firstName": "sample string 1",
"lastName": "sample string 2",
"email": "sample string 3",
"password": "sample string 4"
}
Response Information
Resource Description
The new user's ID.
globally unique identifierResponse Formats
application/json, text/json
Sample:
"650c300d-e0d7-4f13-b0f6-8c3df6816770"