PUT api/account/reset
V1 - Confirms the reset of a users password by validating the pregenerated confirmationcode.
Request Information
URI Parameters
None.
Body Parameters
UserResetConfirmation| Name | Description | Type | Additional information |
|---|---|---|---|
| UserID |
The UserID is for the account that needs to be confirmed. |
globally unique identifier |
Required |
| ConfirmationCode |
The confirmationcode which was supplied at the reset request. |
string |
Required |
| Password |
The users new password. This needs to meet complexity criteria.
|
string |
Required Data type: Password String length: inclusive between 6 and 100 |
Request Formats
application/json, text/json
{
"UserID": "c5fb390b-6cbc-4cca-bb83-bbf443b9e441",
"ConfirmationCode": "sample string 2",
"Password": "sample string 3"
}
text/javascript
{"UserID":"c5fb390b-6cbc-4cca-bb83-bbf443b9e441","ConfirmationCode":"sample string 2","Password":"sample string 3"}
application/xml, text/xml
<UserResetConfirmation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VersionedVendorApi.Models"> <ConfirmationCode>sample string 2</ConfirmationCode> <Password>sample string 3</Password> <UserID>c5fb390b-6cbc-4cca-bb83-bbf443b9e441</UserID> </UserResetConfirmation>
application/x-www-form-urlencoded
Response Information
Resource Description
RegistrationResult| Name | Description | Type | Additional information |
|---|---|---|---|
| UserID |
The UserID is created when the registration is completed. |
string |
None. |
|
The registered email address. |
string |
Data type: EmailAddress |
|
| Username |
The registered username. |
string |
Data type: Text |
| ConfirmationCode |
A generated code that needs to be provided to confirm the newly created user account. |
string |
Data type: Text |
| Status |
YindoApiStatus defines statuscodes. |
YindoApiStatus |
None. |
Response Formats
application/json, text/json
{
"UserID": "sample string 1",
"Email": "sample string 2",
"Username": "sample string 3",
"ConfirmationCode": "sample string 4",
"Status": {
"Code": 0,
"Text": "sample string 1"
}
}
text/javascript
{"UserID":"sample string 1","Email":"sample string 2","Username":"sample string 3","ConfirmationCode":"sample string 4","Status":{"Code":0,"Text":"sample string 1"}}
application/xml, text/xml
<RegistrationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VersionedVendorApi.Models">
<Status xmlns="http://schemas.datacontract.org/2004/07/Yindo.BLL.API">
<Code>Success</Code>
<Text>sample string 1</Text>
</Status>
<ConfirmationCode>sample string 4</ConfirmationCode>
<Email>sample string 2</Email>
<UserID>sample string 1</UserID>
<Username>sample string 3</Username>
</RegistrationResult>