{"_id":"59638ae946651800150ab37b","project":"563cc7119799fb0d00047685","version":{"_id":"563cc7119799fb0d00047688","__v":18,"project":"563cc7119799fb0d00047685","createdAt":"2015-11-06T15:28:17.683Z","releaseDate":"2015-11-06T15:28:17.683Z","categories":["563cc7129799fb0d00047689","566f37f37ffa002300c3cd5b","56914e9bd47b020d002225ac","5692b19ffe72e00d00e4f0a8","56940bc2d8c04d1700e5adb6","56940bc83e9d080d00f064f0","56951b2dfcb1032d0089df7a","569522aecaa32519009c410c","569523ce562335190016da97","569523fddcaf0d1700cb86bf","56980e4a8560a60d00e2c3c3","569921a41693520d002e1305","5699323b7465970d00650b82","569e6cc4fbee990d0072d927","56a2768a0aefae0d00b7fe66","5862e862b8b7fa23009665b7","592835c7bc8bca0f000cc9ff","596f693df43cca002e690e1c"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"Model T","version_clean":"1.0.0","version":"1"},"category":{"_id":"5692b19ffe72e00d00e4f0a8","__v":10,"pages":["5692b1ec72d4580d0081e96b","5692b39b72d4580d0081e96f","56951b250c650a2300250544","569520590c650a2300250553","56952277caa32519009c410a","569523782e5eb41700901a7e","56992a43de42370d00727c7c","56b8acb443bbd10d0081d148","56ec413636bc8e0e00f190e3","56ec46068fac371700005d12"],"project":"563cc7119799fb0d00047685","version":"563cc7119799fb0d00047688","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-01-10T19:31:43.021Z","from_sync":false,"order":13,"slug":"fix-api","title":"Users"},"user":"563cc6fa8894d20d00014ea3","__v":2,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-07-10T14:10:49.154Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[{"name":"","code":"","language":"json","status":204}]},"method":"patch","examples":{"codes":[{"language":"http","code":"PATCH /v1/users/02e57c7d-d071-4c63-b491-1194a9939ea5/password HTTP/1.1\nHost: api.drivewealth.io\nContent-Type: application/json\nx-mysolomeo-session-key: 02e57c7d-d071-4c63-b491-1194a9939ea5.2016-01-13T22:34:53.101Z\n{\n  \"newPassword\":\"friday2017\",\n  \"existingPassword\":\"password1234\"\n}"},{"language":"curl","code":"curl -X PUT -H \"Accept: application/json\" -H \"Content-Type: application/json\" -H \"x-mysolomeo-session-key: 02e57c7d-d071-4c63-b491-1194a9939ea5.2016-01-13T22:34:53.101Z\" -d '{\n    \"code\":\"70506451\",\"passwordResetID\":\"1832f446-f472-4b9c-9263-6386bedfbb5f\",\"password\":\"abcd1234\"\n}' 'https://api.drivewealth.io/v1/users/passords/1832f446-f472-4b9c-9263-6386bedfbb5f'"}]},"auth":"required","params":[{"_id":"56ec46068fac371700005d14","ref":"","in":"path","required":true,"desc":"User identifier","default":"","type":"string","name":"userID"},{"_id":"59638b6e97899500159f05e0","ref":"","in":"body","required":true,"desc":"New password","default":"","type":"string","name":"newPassword"},{"_id":"59638b6e97899500159f05df","ref":"","in":"body","required":true,"desc":"Existing user password","default":"","type":"string","name":"existingPassword"}],"url":"/users/:userID/password"},"isReference":true,"order":8,"body":"[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Password Requirements\",\n  \"body\": \"Passwords must at least 8 characters, but less than 90 characters, and contain at least 1 digit.\"\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Response\"\n}\n[/block]\nThe response should be a HTTP status code `204`.","excerpt":"Update the user's password","slug":"update-password","type":"endpoint","title":"Update Password"}

patchUpdate Password

Update the user's password

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

userID:
required
string
User identifier

Body Params

newPassword:
required
string
New password
existingPassword:
required
string
Existing user password

Examples


Documentation

[block:callout] { "type": "info", "title": "Password Requirements", "body": "Passwords must at least 8 characters, but less than 90 characters, and contain at least 1 digit." } [/block] [block:api-header] { "type": "basic", "title": "Response" } [/block] The response should be a HTTP status code `204`.

User Information

Try It Out

patch
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}