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

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

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

UserIdentificationModel
NameDescriptionTypeAdditional information
FirstName

string

None.

LastName

string

None.

CustomerID

integer

None.

DisplayName

string

None.

Token

string

None.

UserName

string

None.

UserPublicKey

globally unique identifier

None.

UserID

integer

None.

IssueDateTime

date

None.

ExpirationDateTime

date

None.

KeyType

TokenType

None.

Response Formats

application/json, text/json

Sample:
{
  "FirstName": "sample string 1",
  "LastName": "sample string 2",
  "CustomerID": 1,
  "DisplayName": "sample string 1 sample string 2",
  "Token": "sample string 3",
  "UserName": "sample string 4",
  "UserPublicKey": "f2805bde-4d27-4a4f-8ea2-63af780c591b",
  "UserID": 6,
  "IssueDateTime": "2019-08-18T21:36:54.0298991-04:00",
  "ExpirationDateTime": "2019-08-18T21:36:54.0298991-04:00",
  "KeyType": 10
}

text/html

Sample:
{"FirstName":"sample string 1","LastName":"sample string 2","CustomerID":1,"DisplayName":"sample string 1 sample string 2","Token":"sample string 3","UserName":"sample string 4","UserPublicKey":"f2805bde-4d27-4a4f-8ea2-63af780c591b","UserID":6,"IssueDateTime":"2019-08-18T21:36:54.0298991-04:00","ExpirationDateTime":"2019-08-18T21:36:54.0298991-04:00","KeyType":10}

application/xml, text/xml

Sample:
<UserIdentificationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.Authentication">
  <ExpirationDateTime xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2019-08-19T01:36:54.0298991Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>-240</d2p1:OffsetMinutes>
  </ExpirationDateTime>
  <IssueDateTime xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2019-08-19T01:36:54.0298991Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>-240</d2p1:OffsetMinutes>
  </IssueDateTime>
  <KeyType>Identification</KeyType>
  <Token>sample string 3</Token>
  <UserID>6</UserID>
  <UserName>sample string 4</UserName>
  <UserPublicKey>f2805bde-4d27-4a4f-8ea2-63af780c591b</UserPublicKey>
  <CustomerID>1</CustomerID>
  <FirstName>sample string 1</FirstName>
  <LastName>sample string 2</LastName>
</UserIdentificationModel>

application/bson

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