@plentymarkets/shop-api / doChangeUserPassword
Function: doChangeUserPassword() ​
doChangeUserPassword(
context
,params
):Promise
<Data
<UserChangeResponse
>>
Defined in: api/doChangeUserPassword/index.ts:24
Method doChangeUserPassword - changes user password
Parameters ​
context ​
PlentysystemsIntegrationContext
params ​
Returns ​
Promise
<Data
<UserChangeResponse
>>
Remarks ​
- Calls /rest/io/customer/password/
- This method is used to change the password of the logged-in user.
Example ​
ts
const { data } = await useSdk().plentysystems.doChangeUserPassword({
oldPassword: 'Testuser1234',
password: 'Testuser1234',
password2: 'Testuser1234'
});