1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

API RPC XML <mail><update><set>...

Discussion in 'Plesk for Linux - 8.x and Older' started by bluenen, Jul 5, 2007.

  1. bluenen

    bluenen Guest

    0
     
    Hi,

    For some reason I cant get the Plesk API to Update the password of a given mail account.

    I send the request as follows:

    <?xml version="1.0" encoding="UTF-8"?>
    <packet version="1.5.0.0">
    <mail>
    <update>
    <set>
    <filter>
    <domain_id>227</domain_id>
    <mailname>
    <name>blah</name>
    <password>12345</password>
    <password_type>crypt</password_type>
    </mailname>
    </filter>
    </set>
    </update>
    </mail>
    </packet>

    Plesk returns saying <status>ok</status> but the password actually remains unchanged.

    Please help!?
     
  2. Amin Taheri

    Amin Taheri Golden Pleskian Plesk Certified Professional

    33
     
    Joined:
    Jul 5, 2007
    Messages:
    1,398
    Likes Received:
    1
    Location:
    Seattle Area
    Have you tried just using ID ?

    <id>227</id>
     
  3. bluenen

    bluenen Guest

    0
     
    I have tried changing domain_id to just 'id' as you mentioned but the API doesnt like that at all, "Parser error: Request is invalid"
     
Loading...