POST api/ResetPassword
Resets a password and logs in using a login token.
Request Information
URI Parameters
None.
Body Parameters
ResetPasswordRequestName | Description | Type | Additional information |
---|---|---|---|
LoginToken | string |
Required |
|
string |
Required |
||
NewPassword | string |
Required |
|
SendEmail | boolean |
Required |
Request Formats
application/json, text/json
Sample:
{ "LoginToken": "sample string 1", "Email": "sample string 2", "NewPassword": "sample string 3", "SendEmail": true }
application/xml, text/xml
Sample:
<ResetPasswordRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Account"> <Email>sample string 2</Email> <LoginToken>sample string 1</LoginToken> <NewPassword>sample string 3</NewPassword> <SendEmail>true</SendEmail> </ResetPasswordRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ResetPasswordResult object
ApiSuccessOfResetPasswordResultName | Description | Type | Additional information |
---|---|---|---|
Success | boolean | ||
Data | ResetPasswordResult |
Response Formats
application/json
Sample:
{ "Success": true, "Data": { "EmailSent": true, "SessionKey": "9Jp+soi+raqNE/dbo1XtP+GfKQPgmK+CZmdUJT2118fya62n5RKyWSOvaV+NIUS2Lq6JO9ulXKrXnFRSVq1l/uyK9DtlKHUKuSpUFFa9xjE=", "LoggedIn": true } }
text/json
Sample:
{ "Success": true, "Data": { "EmailSent": true, "SessionKey": "QOAegwloF7qWMEXkA76iubhVjBej5REl+/Czcxmk/Yu5KstRFNAmZc5nlYMtYj1q2EpryLylxgaYeFLGfwS+Qlj7SyL+Y6HlPxbjwoB6S6g=", "LoggedIn": true } }
application/xml, text/xml
Sample:
<ApiSuccessOfResetPasswordResultgLC8bFpX xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Api"> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Account"> <d2p1:LoggedIn>true</d2p1:LoggedIn> <d2p1:SessionKey>sample string 2</d2p1:SessionKey> <d2p1:EmailSent>true</d2p1:EmailSent> </Data> </ApiSuccessOfResetPasswordResultgLC8bFpX>