change Password

@PatchMapping(path = "USERS_KEY + "/{" + IDENTIFIER_KEY + "}" + CHANGE_PASSWORD_ENDPOINT", headers = [] )
open fun changePassword(@PathVariable(value = "id") id: String, @RequestHeader(value = "token") token: String, @RequestBody payload: Map<String, String>): String

Method to change the password of the user

Return

the result of the request as String

Parameters

id

: the identifier of the user

token

: the token of the user

payload

: payload of the request


                             {
                                 "password": "the new password of the user" -> [String]
                             }