Change password via API
Curious if anyone has been able to change an accounts password via API. I'm following the 'Updating an Email Account' guide from https://support.mailroute.net/hc/en-us/articles/224060388-API-Part-5-Email-Account-Resource but I just get "Sorry, this request could not be processed. Please try again later".
This is what I am using for CURL (omitting some info)
curl -s --dump-header - -X PUT \
-H 'Content-Type: application/json; charset=utf-8' \
-H 'Authorization: ApiKey <my email>:<my apikey>' \
--data ' {
"localpart" : "<my localpart>",
"domain" : "/api/v1/domain/<my domain id>",
"password" : "<Password i'm trying to set it to>"
}' \
https://admin.mailroute.net/api/v1/email_account/<email id>/
-
Official commentChanging a password requires a "PATCH" call, not a PUT.Here's an example:curl -s --dump-header - -X PATCH -H 'Content-Type: application/json' -H 'Authorization: ApiKey u1@usercase.com:<key>' --data '{"confirm_password": "qazxswedc","password": "qazxswedc","change_pwd": "1"
-
I should express myself better: of course the AD authentication is available in Designer. What I meant is that I cannot get rid of system users in total as we need them for compiling the database e.g.According to some infos an employee gave me, it is not possible to give an AD account the same permissions as viadmin.
0
Please sign in to leave a comment.
Comments
2 comments