POST Authentication/ChangePassword

Changes the current users password in the system, and returns a new login token

Request Information

URI Parameters

None.

Body Parameters

ModifyPasswordModel
NameDescriptionTypeAdditional information
OldPassword

string

Required

Data type: Password

NewPassword

string

Required

Data type: Password

String length: inclusive between 0 and 100

TokenDurationHours

byte

Range: inclusive between 0 and 255

MemberAuthenticationType

MemberAuthenticationType

None.

IPAddress

string

Required

String length: inclusive between 0 and 128

DeviceId

string

None.

Request Formats

application/json, text/json, text/html

Sample:
{
  "OldPassword": "sample string 1",
  "NewPassword": "sample string 2",
  "TokenDurationHours": 64,
  "MemberAuthenticationType": 1,
  "IPAddress": "sample string 4",
  "DeviceId": "sample string 5"
}

application/xml, text/xml

Sample:
<ModifyPasswordModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.Membership">
  <DeviceId>sample string 5</DeviceId>
  <IPAddress>sample string 4</IPAddress>
  <MemberAuthenticationType>System</MemberAuthenticationType>
  <NewPassword>sample string 2</NewPassword>
  <OldPassword>sample string 1</OldPassword>
  <TokenDurationHours>64</TokenDurationHours>
</ModifyPasswordModel>

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

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

TEFAuthenticationResult
NameDescriptionTypeAdditional information
ContextCustomerID

integer

None.

IsSuperUser

boolean

None.

ManageCustomerIDs

Collection of integer

None.

IdentificationType

TokenType

None.

UserPublicKey

globally unique identifier

None.

Token

string

None.

IsAuthenticated

boolean

None.

ExpirationDateTime

date

None.

Response Formats

application/json, text/json, text/html

Sample:
{
  "ContextCustomerID": 1,
  "IsSuperUser": true,
  "ManageCustomerIDs": null,
  "IdentificationType": 10,
  "UserPublicKey": "4c79a547-606f-4f3a-af69-98c43bfa2be1",
  "Token": "sample string 3",
  "IsAuthenticated": true,
  "ExpirationDateTime": "2019-12-13T17:19:11.4984678-05:00"
}

application/xml, text/xml

Sample:
<TEFAuthenticationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.Authentication" />

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.