POST api/ActionService/ChangePassword

Documentation for 'ChangePassword'.

Request Information

Parameters

NameDescriptionAdditional information
request
Documentation for 'request'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "UserId": 1,
  "CurrentPassword": "sample string 2",
  "NewPassword": "sample string 3"
}

application/xml, text/xml

Sample:
<ChangePasswordRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PartyMusic.BusinessObject.Messages">
  <CurrentPassword>sample string 2</CurrentPassword>
  <NewPassword>sample string 3</NewPassword>
  <UserId>1</UserId>
</ChangePasswordRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'FormUrlEncodedMediaTypeFormatterTracer' to write type 'ChangePasswordRequest'.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "status": "sample string 1",
  "Message": {
    "HasCurrentPasswordMatched": true,
    "HasPasswordChanged": true
  }
}

application/xml, text/xml

Sample:
<ResponseBaseOfChangePasswordResponseK8eNC3q0 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PartyMusic.BusinessObject.MessageBase">
  <Message xmlns:d2p1="http://schemas.datacontract.org/2004/07/PartyMusic.BusinessObject.Messages">
    <d2p1:HasCurrentPasswordMatched>true</d2p1:HasCurrentPasswordMatched>
    <d2p1:HasPasswordChanged>true</d2p1:HasPasswordChanged>
  </Message>
  <status>sample string 1</status>
</ResponseBaseOfChangePasswordResponseK8eNC3q0>