POST | /auth/recover |
---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
/**
* Reset an account's password using the token sent via email
*/
@Api(Description="Reset an account's password using the token sent via email")
open class RecoverPassword : IPost
{
/**
* The email address being recovered
*/
@ApiMember(Description="The email address being recovered")
open var emailAddress:String? = null
/**
* The token sent via email
*/
@ApiMember(Description="The token sent via email")
open var token:String? = null
/**
* New Password
*/
@ApiMember(Description="New Password")
open var newPassword:String? = null
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /auth/recover HTTP/1.1
Host: team.evovoice.io
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"emailAddress":"String","token":"String","newPassword":"String"}