POST api/AccountsChangePw

Request Information

URI Parameters

None.

Body Parameters

Password
NameDescriptionTypeAdditional information
PasswordOld

string

None.

PasswordNew

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PasswordOld": "sample string 1",
  "PasswordNew": "sample string 2"
}

application/xml, text/xml

Sample:
<Password xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sts.Vas.Stp.Api.Controllers.Accounts">
  <PasswordNew>sample string 2</PasswordNew>
  <PasswordOld>sample string 1</PasswordOld>
</Password>

application/x-www-form-urlencoded

Sample:

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

Response Information

Resource Description

ResponseDataOfTokenResponse
NameDescriptionTypeAdditional information
Token

string

None.

Data

TokenResponse

None.

Response Formats

application/json, text/json

Sample:
{
  "Token": "sample string 1",
  "Data": {
    "Token": "sample string 1",
    "Role": 0,
    "UserConfig": "sample string 2",
    "UserName": "sample string 3",
    "RoleConfig": "sample string 4",
    "ClientId": "sample string 5"
  }
}

application/xml, text/xml

Sample:
<ResponseDataOfTokenResponsepydjGBHb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sts.Vas.Stp.Api.Models">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Sts.Vas.Stp.Api.Core.Models">
    <d2p1:ClientId>sample string 5</d2p1:ClientId>
    <d2p1:Role>Unknown</d2p1:Role>
    <d2p1:RoleConfig>sample string 4</d2p1:RoleConfig>
    <d2p1:Token>sample string 1</d2p1:Token>
    <d2p1:UserConfig>sample string 2</d2p1:UserConfig>
    <d2p1:UserName>sample string 3</d2p1:UserName>
  </Data>
  <Token>sample string 1</Token>
</ResponseDataOfTokenResponsepydjGBHb>