POST api/account/alterarsenha

Altera a senha do usuário.

Request Information

URI Parameters

None.

Body Parameters

ChangePasswordBindingModel
NameDescriptionTypeAdditional information
CanalId

Id do canal chamador.

integer

Required

OldPassword

Senha antiga.

string

Required

Data type: Password

NewPassword

Senha nova.

string

Required

Data type: Password

String length: inclusive between 6 and 100

ConfirmPassword

Confirma nova senha.

string

Data type: Password

Request Formats

application/json, text/json

Sample:
{
  "CanalId": 1,
  "OldPassword": "sample string 2",
  "NewPassword": "sample string 3",
  "ConfirmPassword": "sample string 4"
}

application/xml, text/xml

Sample:
<ChangePasswordBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models">
  <CanalId>1</CanalId>
  <ConfirmPassword>sample string 4</ConfirmPassword>
  <NewPassword>sample string 3</NewPassword>
  <OldPassword>sample string 2</OldPassword>
</ChangePasswordBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ChangePasswordResult
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:
<ChangePasswordResult 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>
</ChangePasswordResult>