POST api/SocialDriver/ChangePassword/{revokeTokens}

Change a user's password

Request Information

URI Parameters

NameDescriptionTypeAdditional information
revokeTokens

Optional to revoke any of the user's existing tokens. User will need to re log in if this is done

boolean

Default value is False

Body Parameters

A ChangePasswordRequest

ChangePasswordRequest
NameDescriptionTypeAdditional information
OldPassword

The user's old password

string

None.

NewPassword

The user's new password

string

None.

ConfirmPassword

A confirmation of the new password

string

None.

Request Formats

application/json, text/json

Sample:
{
  "OldPassword": "sample string 1",
  "NewPassword": "sample string 2",
  "ConfirmPassword": "sample string 3"
}

application/xml, text/xml

Sample:
<ChangePasswordRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <OldPassword>sample string 1</OldPassword>
  <NewPassword>sample string 2</NewPassword>
  <ConfirmPassword>sample string 3</ConfirmPassword>
</ChangePasswordRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.