POST api/account/setpassword

Altera a senha do usuário.

Request Information

URI Parameters

None.

Body Parameters

SetPasswordBindingModel
NameDescriptionTypeAdditional information
Email

string

Required

TenantId

globally unique identifier

Required

NovaSenha

string

Required

ConfirmarSenha

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Email": "sample string 1",
  "TenantId": "920dc142-269f-4552-8e13-e0fe6663b883",
  "NovaSenha": "sample string 3",
  "ConfirmarSenha": "sample string 4"
}

application/xml, text/xml

Sample:
<SetPasswordBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models">
  <ConfirmarSenha>sample string 4</ConfirmarSenha>
  <Email>sample string 1</Email>
  <NovaSenha>sample string 3</NovaSenha>
  <TenantId>920dc142-269f-4552-8e13-e0fe6663b883</TenantId>
</SetPasswordBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ForgotPasswordResult
NameDescriptionTypeAdditional information
Succeeded

boolean

None.

Errors

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "Succeeded": true,
  "Errors": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<ForgotPasswordResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models">
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Errors>
  <Succeeded>true</Succeeded>
</ForgotPasswordResult>