POST login/users/reset password

(Difference between revisions)
Jump to: navigation, search
(Created page with "== Description == Resets the password for a user given a reset password token. == Resource URL == POST https://api.socialidnow.com/v1/marketing/login/reset_password == ...")
 
(Response Status)
Line 38: Line 38:
 
|-
 
|-
 
! align="left" width="200px" | bad_request (400)
 
! align="left" width="200px" | bad_request (400)
| Some required parameter was not informed or the reset password token is expired.
+
| Some required parameter was not informed.
 
|-
 
|-
 
! align="left" width="200px" | unauthorized (401)
 
! align="left" width="200px" | unauthorized (401)
 
| The authentication is wrong. See [[Authentication]].
 
| The authentication is wrong. See [[Authentication]].
 +
|-
 +
! align="left" width="200px" | forbidden (403)
 +
| The reset password token has expired.
 
|-
 
|-
 
! align="left" width="200px" | not_found (404)
 
! align="left" width="200px" | not_found (404)

Revision as of 16:50, 10 December 2014

Contents

Description

Resets the password for a user given a reset password token.

Resource URL

  POST https://api.socialidnow.com/v1/marketing/login/reset_password

Parameters

JSON Parameters

user required a hash in the format field:value, with the necessary fields to reset the user password:
reset_password_token required reset password token.
password required user password.

Authentication

This API requires Social Login App authentication. See Authentication.

Response

Response Status

ok (200) The user was updated successfully.
bad_request (400) Some required parameter was not informed.
unauthorized (401) The authentication is wrong. See Authentication.
forbidden (403) The reset password token has expired.
not_found (404) The reset password token was not found.
unprocessable_entity (422) Validation error in the field "user".
internal_server_error (500) An unknown error happened.

Examples

Request

curl -iX POST 'https://api.socialidnow.com/v1/marketing/login/users/reset_password' \
-d '{
      "user": {
        "reset_password_token":"9d9351da1ba706dccdc8d21a48e8c00fc6341f36ca50a37f54983bb8641bafa4",
        "password":"brand_new_user_secret"
       }
     }' \
-H 'Content-type: application/json' \
--user 138:e8b9ca24f1b590af67e6271297d6e1f7226625d61c5b5daa1b2f215464e292cf

Response

Response Headers
HTTP/1.1 201 Created
Status: 201
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox