PUT api/Account/Password

Change (or set, if no password is set) the logged-in user's password

Request Information

URI Parameters

None.

Body Parameters

ChangePasswordModel
NameDescriptionTypeAdditional information
OldPassword

User's old (current) password

string

Required

Data type: Password

Password

User's desired new password

string

Required

Data type: Password

String length: inclusive between 8 and 100

ConfirmPassword

Confirmation of the user's new password

string

Required

Data type: Password

Request Formats

application/json, text/json

Sample:
{
  "OldPassword": "sample string 1",
  "Password": "sample string 2",
  "ConfirmPassword": "sample string 3"
}

application/xml, text/xml

Sample:
<ChangePasswordModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CaringVillage.Shared.Implementation.Models">
  <ConfirmPassword>sample string 3</ConfirmPassword>
  <OldPassword>sample string 1</OldPassword>
  <Password>sample string 2</Password>
</ChangePasswordModel>

multipart/form-data

Sample:

Failed to generate the sample for media type 'multipart/form-data'. Cannot use formatter 'MultipartMediaTypeFormatter' to write type 'ChangePasswordModel'.

Response Information

Resource Description

PrimitiveOfBoolean
NameDescriptionTypeAdditional information
value

boolean

Required

Response Formats

application/json, text/json

Sample:
{
  "value": true
}

application/xml, text/xml

Sample:
<PrimitiveOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CaringVillage.API.Models">
  <value>true</value>
</PrimitiveOfboolean>