[#18] How to edit client his own data ?

Migrated from Redmine #18 | Author: Abinash Sahoo
Status: Rejected | Priority: High, I’m very impatient | Created: 2017-08-18


var client = new JSONRpcClient({
‘url’: ‘//user-api.simplybook.me’,
‘headers’: {
‘X-Company-Login’: ‘homestaydev’,
‘X-Token’: ‘304b77f8e5425ee9c407ffc69ef168a46af9314298c2d3c6e09d408bc796ba78’
},
‘onerror’: function (error) {
alert(error);
}
});
var editObj = {

    "email": "abinash.sahoo@happiestminds.com",
    "name": "abinash",
    "phone": "+917411583481",
    "is_blocked": "0",
    "address1": "3872 Earnhardt Drive",
    "address2": "Louisville, KY 40219",
    "city": "Bangalore",
    "zip": "3872"

}
client.editClient(11, editObj)

Dmytro Bondarev wrote:

Please use [[API documentation | SimplyBook.me Online Scheduling]] method.
editClient is admin part.

Abinash Sahoo wrote:

so resetpassword & edit client data is not possible for any client ?

Dmytro Bondarev wrote:

Please use modifyClientInfo method to edit client data and password.