POST login/users/reset password

From Social ID Developers
Jump to: navigation, search

Contents

Description

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

Resource URL

  POST https://api.socialidnow.com/v1/marketing/login/users/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 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":"updated_password"
       }
     }' \
-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