changing AEP password through AEP API not working

Home Forums Conduit: AEP Model changing AEP password through AEP API not working

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #23409
    george wang
    Participant

    I am trying to change the AEP password through AEP API:
    http://www.multitech.net/developer/software/aep/conduit-aep-api/collection-endpoints-conduit/users-conduit/

    I tried the following from console:
    admin@mtcdt:~# curl 127.0.0.1/api/users/admin -X PUT –data ‘{“password”:”mynewpasswd”}’ -H “Content-Type: application/json”

    and got reply:
    {
    “code” : 200,
    “status” : “success”
    }

    But the password didn’t get changed.
    I also tried similar commands but no luck.

    What’s the right way to change AEP password through API?

    #23410
    Jeff Hatch
    Keymaster

    George,

    I have gotten the following to work at some point:

    curl -s -m 5 -X PUT -H ‘Content-Type: application/json’ -d ‘{“name” : “admin”, “password” : “admin”, “newPassword” : “admin123”}’ 127.0.0.1/api/users

    Where your actually doing a put on the user collection instead with the existing user “admin” and the old password “admin” and the newPassoword specified.

    Let me know if that helps.

    Jeff

    #23414
    george wang
    Participant

    it works.Thanks.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.