PUT api/useraccount/resetforgottenpassword
Resets the password for a user who has forgotten theirs.
Request Information
URI Parameters
None.
Body Parameters
ERP.Api.Controllers.CustomerPortal.ResetForgottenParams| Name | Description | Type | Additional information |
|---|---|---|---|
| CustomerId |
The customer identifier, which for now is the contact id. |
integer |
None. |
| Username |
The username / email address. |
string |
None. |
| NewPass |
The new password to set. |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"customerId": 1,
"username": "sample string 2",
"newPass": "********"
}
application/xml, text/xml
Sample:
<ResetForgottenParams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERP.Api.Controllers.CustomerPortal"> <CustomerId>1</CustomerId> <NewPass>sample string 3</NewPass> <Username>sample string 2</Username> </ResetForgottenParams>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
For valid requests, an authentication token.
ERP.Api.Controllers.CustomerPortal.TokenResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Token |
Gets or sets the token. |
string |
None. |
| Roles |
Gets the authorized roles. |
Collection of string |
None. |
| Lifetime |
Gets the token lifetime (in seconds). |
integer |
None. |
| ContactId |
Gets the contact id. |
integer |
None. |
| ApplicationStatus |
Gets the application status. |
string |
None. |
Response Formats
application/json, text/json
Sample:
Sample not available.