POST api/Customers/ChangePassword

new user must change password

Request Information

URI Parameters

None.

Body Parameters

ChangePasswordRequest
NameDescriptionTypeAdditional information
User

User

None.

UserNewPassword

string

None.

UserName

The provided user name.

string

Required

Salt

A random number(at least 9 digits)

integer

Required

Digest

A digest of the user credentials and the request

string

Required

Request Formats

application/json, text/json

Sample:
{
  "User": {
    "UserName": "sample string 1",
    "Email": "sample string 2",
    "Key": "sample string 3"
  },
  "UserNewPassword": "sample string 1",
  "UserName": "sample string 2",
  "Salt": 3,
  "Digest": "sample string 4"
}

application/xml, text/xml

Sample:
<ChangePasswordRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" UserName="sample string 2" Salt="3" Digest="sample string 4">
  <User>
    <UserName>sample string 1</UserName>
    <Email>sample string 2</Email>
    <Key>sample string 3</Key>
  </User>
  <UserNewPassword>sample string 1</UserNewPassword>
</ChangePasswordRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

returns Change Password response object

ChangePasswordResponse
NameDescriptionTypeAdditional information
Success

Indicate if the operation was success

boolean

None.

Message

Return of errors or indicated return message/data

string

None.

Extra1

Additional info 1 to return

string

None.

Extra2

Additional info 2 to return

string

None.

Extra3

Additional info 3 to return

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": "sample string 2",
  "Extra1": "sample string 3",
  "Extra2": "sample string 4",
  "Extra3": "sample string 5"
}

application/xml, text/xml

Sample:
<ChangePasswordResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Success>true</Success>
  <Message>sample string 2</Message>
  <Extra1>sample string 3</Extra1>
  <Extra2>sample string 4</Extra2>
  <Extra3>sample string 5</Extra3>
</ChangePasswordResponse>