• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Resolved Is possible handle mailboxes using NEW REST API v2?

Is possible handle mailboxes using new REST API v2?

  • No... it's still not possible ... wait a undefined time

    Votes: 0 0.0%

  • Total voters
    1

Fernando Ok

New Pleskian
Hi, I have a question which I think I already know the answer (not), but I want to be sure.

Ok, the question is if I can handle(create, edit, remove...) mailboxes using "New Remote Plesk REST API v2".

This new API is amazing and I am surprised that it does not have the capacity to manage something so basic ...


Regards from Spain ;)
 
To create a mailbox:

Code:
# curl -k -X POST -u admin:password "https://203.0.113.2:8443/api/v2/cli/mail/call" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"params\": [ \"--create\", \"[email protected]\",\"-mailbox\", \"true\", \"-passwd\", \"1qazXSW@\" ]}"
{
"code": 0,
"stdout": "SUCCESS: Creation of mailname '[email protected]' complete",
"stderr": ""
 
To create a mailbox:

Code:
# curl -k -X POST -u admin:password "https://203.0.113.2:8443/api/v2/cli/mail/call" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"params\": [ \"--create\", \"[email protected]\",\"-mailbox\", \"true\", \"-passwd\", \"1qazXSW@\" ]}"
{
"code": 0,
"stdout": "SUCCESS: Creation of mailname '[email protected]' complete",
"stderr": ""
Thank you very much!! ;)
 
Back
Top