Welcome‎ > ‎Version 3‎ > ‎Publisher Api‎ > ‎Methods‎ > ‎3 - Profile Store‎ > ‎

Change Password

Will change a user's password.  It requires the userkey to identify the user, the current password, and the new password twice.

Method: POST /api/v3/publisher/profilestore/changepassword

Authentication: oauth
 
Post
Required Form Name Data Type Explanation
Yes
UserKey string The userkey for the consumer.
Yes
CurrentPassword
string The current password for the consumer.
Yes NewPassword string The new password for the profile.
Yes NewPasswordConfirm string The confirm password.  Sanity check.

Returns:
base response fields

Sample Request:

POST http://api.groupcommerce.com/api/v3/publisher/profilestore/changepassword

Form: UserKey=UserKey1&CurrentPassword=password1&NewPassword=password1&NewPasswordConfirm=password1

Authorization: OAuth oauth_signature="FMJcDk%2f%2b8WhbhHDYC5edy0rGEvw%3d", oauth_nonce="6752553", oauth_timestamp="1322776547", oauth_consumer_key="eeb6b959-b854-4ad1-b563-e801c83cf81d", oauth_signature_method="HMAC-SHA1", oauth_version="1.0"


Sample JSON Response:

{
    "errors":[],
    "lastPublished":"/Date(1320704116016)/",
    "success":true,
    "version":"3"
}


Sample XML Response:

<changePasswordResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <errors/>
    <lastPublished>2011-11-07T22:19:38.6794609Z</lastPublished>
    <success>true</success>
    <version>3</version>
</changePasswordResponse>
Comments