PUT api/useraccount/changepassword

Changes the password for the current user. A fresh authentication token is returned for convenience.

Request Information

URI Parameters

None.

Body Parameters

ERP.Api.Controllers.CustomerPortal.ChangePasswordParams
NameDescriptionTypeAdditional information
CurrentPass

Gets or sets the current password.

string

None.

NewPass

Gets or sets the new password.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "currentPass": "********",
  "newPass": "********"
}

application/xml, text/xml

Sample:
<ChangePasswordParams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERP.Api.Controllers.CustomerPortal">
  <CurrentPass>sample string 1</CurrentPass>
  <NewPass>sample string 2</NewPass>
</ChangePasswordParams>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'System.Web.Http.ModelBinding.JQueryMvcFormUrlEncodedFormatter' to write type 'ERP.Api.Controllers.CustomerPortal.ChangePasswordParams'.

Response Information

Resource Description

For valid requests, a new authentication token.

ERP.Api.Controllers.CustomerPortal.TokenResponse
NameDescriptionTypeAdditional information
Token

Gets or sets the token.

string

None.

Roles

Gets the authorized roles.

Collection of string

None.

Lifetime

Gets the token lifetime (in seconds).

integer

None.

ContactId

Gets the contact id.

integer

None.

ApplicationStatus

Gets the application status.

string

None.

Response Formats

application/json, text/json

Sample:

Sample not available.