PUT api/useraccount/resetpassword

Changes the password for the (customer) user specified. This is for users who appear in the PortalUser table only; i.e. it cannot be used on an account that resides anywhere else.

Request Information

URI Parameters

None.

Body Parameters

ERP.Api.Controllers.CustomerPortal.ResetPasswordParams
NameDescriptionTypeAdditional information
UserId

Gets or sets the user id.

globally unique identifier

None.

NewPass

Gets or sets the new password.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "userId": "fb3ab8f9-7ed2-4de6-aa61-8f2ef8a6a912",
  "newPass": "********"
}

application/xml, text/xml

Sample:
<ResetPasswordParams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERP.Api.Controllers.CustomerPortal">
  <NewPass>sample string 2</NewPass>
  <UserId>fb3ab8f9-7ed2-4de6-aa61-8f2ef8a6a912</UserId>
</ResetPasswordParams>

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.ResetPasswordParams'.

Response Information

Resource Description

A response with no data.

System.Web.Http.IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.