POST login/users/reset password
From Social ID Developers
(Difference between revisions)
Renato.neves (Talk | contribs) (→Response Status) |
|||
(2 intermediate revisions by one user not shown) | |||
Line 5: | Line 5: | ||
== Resource URL == | == Resource URL == | ||
− | POST https://api.socialidnow.com/v1/marketing/login/reset_password | + | POST https://api.socialidnow.com/v1/marketing/login/users/reset_password |
== Parameters == | == Parameters == | ||
Line 27: | Line 27: | ||
== Authentication == | == Authentication == | ||
− | This API requires | + | This API requires Login App authentication. See [[Authentication]]. |
== Response == | == Response == | ||
Line 64: | Line 64: | ||
"user": { | "user": { | ||
"reset_password_token":"9d9351da1ba706dccdc8d21a48e8c00fc6341f36ca50a37f54983bb8641bafa4", | "reset_password_token":"9d9351da1ba706dccdc8d21a48e8c00fc6341f36ca50a37f54983bb8641bafa4", | ||
− | "password":" | + | "password":"updated_password" |
} | } | ||
}' \ | }' \ |
Latest revision as of 16:47, 30 December 2021
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